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

Class BrokenReprException

testing/io/test_saferepr.py:44–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_exceptionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_exceptionsFunction · 0.68