Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ E
Class
E
testing/python/raises.py:40–41 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
38
""
"Ensure repr() on an exception info inside a pytest.raises with block works (#4386)"
""
39
40
class
E(Exception):
41
pass
42
43
with
pytest.raises(E)
as
excinfo:
44
# this test prints the inflight uninitialized object
Callers
1
test_raises_repr_inflight
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_raises_repr_inflight
Method · 0.68