MCPcopy Create free account
hub / github.com/pytest-dev/pytest / tfunc

Method tfunc

testing/python/raises.py:209–210  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

207 pytest.raises(TypeError, int, match="invalid")
208
209 def tfunc(match):
210 raise ValueError(f"match={match}")
211
212 pytest.raises(ValueError, tfunc, match="asdf").match("match=asdf")
213 pytest.raises(ValueError, tfunc, match="").match("match=")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected