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

Method test_noclass

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

Source from the content-addressed store, hash-verified

128 result.stdout.fnmatch_lines(["*2 failed*"])
129
130 def test_noclass(self) -> None:
131 with pytest.raises(TypeError):
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"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected