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

Class BrokenRepr

testing/io/test_saferepr.py:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36def test_exceptions() -> None:
37 class BrokenRepr:
38 def __init__(self, ex):
39 self.ex = ex
40
41 def __repr__(self):
42 raise self.ex
43
44 class BrokenReprException(Exception):
45 __str__ = None # type: ignore[assignment]

Callers 1

test_exceptionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_exceptionsFunction · 0.68