Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ LongRepr
Class
LongRepr
Lib/test/test_unittest/test_util.py:15–17 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
13
raise
ValueError(
"Invalid repr()"
)
14
15
class
LongRepr:
16
def
__repr__(self):
17
return
'x'
* 100
18
19
safe_repr(RaisingRepr())
20
self.assertEqual(safe_repr(
'foo'
),
"'foo'"
)
Callers
1
test_safe_repr
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_safe_repr
Method · 0.68