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

Class A

testing/python/raises.py:23–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22 def test_raises_callable_no_exception(self) -> None:
23 class A:
24 def __call__(self):
25 pass
26
27 try:
28 pytest.raises(ValueError, A())

Callers 1

Calls

no outgoing calls

Tested by 1