Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __repr__
Method
__repr__
testing/code/test_excinfo.py:336–337 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
334
335
class
CustomException(Exception):
336
def
__repr__(self):
337
return
"custom_repr"
338
339
def
raises() -> None:
340
raise
CustomException()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected