MCPcopy 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

9class 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_reprMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_safe_reprMethod · 0.68