MCPcopy Index your code
hub / github.com/ipython/ipython / test_bad_repr

Function test_bad_repr

tests/test_pretty.py:188–191  ·  view source on GitHub ↗

Don't catch bad repr errors

()

Source from the content-addressed store, hash-verified

186
187
188def test_bad_repr():
189 """Don't catch bad repr errors"""
190 with pytest.raises(ZeroDivisionError):
191 pretty.pretty(BadRepr())
192
193
194class BadException(Exception):

Callers

nothing calls this directly

Calls 2

prettyMethod · 0.80
BadReprClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…