MCPcopy Index your code
hub / github.com/python/cpython / RaisingRepr

Class RaisingRepr

Lib/test/test_unittest/test_util.py:7–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5class TestUtil(unittest.TestCase):
6 def test_safe_repr(self):
7 class RaisingRepr:
8 def __repr__(self):
9 raise ValueError("Invalid repr()")
10
11 class LongRepr:
12 def __repr__(self):

Callers 1

test_safe_reprMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_safe_reprMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…