MCPcopy Create free account
hub / github.com/ipython/ipython / test_bad_repr

Function test_bad_repr

IPython/lib/tests/test_pretty.py:157–160  ·  view source on GitHub ↗

Don't catch bad repr errors

()

Source from the content-addressed store, hash-verified

155 nt.assert_equal(output, expected)
156
157def test_bad_repr():
158 """Don't catch bad repr errors"""
159 with nt.assert_raises(ZeroDivisionError):
160 pretty.pretty(BadRepr())
161
162class BadException(Exception):
163 def __str__(self):

Callers

nothing calls this directly

Calls 2

prettyMethod · 0.80
BadReprClass · 0.70

Tested by

no test coverage detected