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

Method test_invalid_arguments_to_raises

testing/python/raises.py:134–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 pytest.raises("wrong", lambda: None) # type: ignore[call-overload]
133
134 def test_invalid_arguments_to_raises(self) -> None:
135 with pytest.raises(TypeError, match="unknown"):
136 with pytest.raises(TypeError, unknown="bogus"): # type: ignore[call-overload]
137 raise ValueError()
138
139 def test_tuple(self):
140 with pytest.raises((KeyError, ValueError)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected