MCPcopy Create free account
hub / github.com/pytest-dev/pytest / BrokenObj

Class BrokenObj

testing/io/test_saferepr.py:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 self.raise_exc("__repr__")
88
89 class BrokenObj:
90 def __init__(self, exc):
91 self.exc = exc
92
93 def __repr__(self):
94 raise self.exc
95
96 __str__ = __repr__
97
98 baseexc_str = BaseException("__str__")
99 obj = BrokenObj(RaisingOnStrRepr([BaseException]))

Callers 1

test_baseexceptionFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_baseexceptionFunction · 0.68