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

Class ReallyBadRepr

IPython/lib/tests/test_pretty.py:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 return -1
165
166class ReallyBadRepr(object):
167 __module__ = 1
168 @property
169 def __class__(self):
170 raise ValueError("I am horrible")
171
172 def __repr__(self):
173 raise BadException()
174
175def test_really_bad_repr():
176 with nt.assert_raises(BadException):

Callers 1

test_really_bad_reprFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_really_bad_reprFunction · 0.68