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

Method test_check_callable

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

Source from the content-addressed store, hash-verified

8
9class TestRaises:
10 def test_check_callable(self) -> None:
11 with pytest.raises(TypeError, match=r".* must be callable"):
12 pytest.raises(RuntimeError, "int('qwe')") # type: ignore[call-overload]
13
14 def test_raises(self):
15 excinfo = pytest.raises(ValueError, int, "qwe")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected