Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __init__
Method
__init__
testing/io/test_saferepr.py:38–39 ·
view source on GitHub ↗
(self, ex)
Source
from the content-addressed store, hash-verified
36
def
test_exceptions() -> None:
37
class
BrokenRepr:
38
def
__init__(self, ex):
39
self.ex = ex
40
41
def
__repr__(self):
42
raise
self.ex
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected