MCPcopy
hub / github.com/pytest-dev/pytest / BrokenReprException

Class BrokenReprException

testing/io/test_saferepr.py:48–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 raise self.ex
47
48 class BrokenReprException(Exception):
49 __str__ = None # type: ignore[assignment]
50 __repr__ = None # type: ignore[assignment]
51
52 assert "Exception" in saferepr(BrokenRepr(Exception("broken")))
53 s = saferepr(BrokenReprException("really broken"))

Callers 1

test_exceptionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_exceptionsFunction · 0.68