Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ RaisingRepr
Class
RaisingRepr
Lib/test/test_unittest/test_util.py:11–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9
class
TestUtil(unittest.TestCase):
10
def
test_safe_repr(self):
11
class
RaisingRepr:
12
def
__repr__(self):
13
raise
ValueError(
"Invalid repr()"
)
14
15
class
LongRepr:
16
def
__repr__(self):
Callers
1
test_safe_repr
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_safe_repr
Method · 0.68