Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __call__
Method
__call__
testing/python/raises.py:24–25 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
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
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected