| 164 | return -1 |
| 165 | |
| 166 | class 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 | |
| 175 | def test_really_bad_repr(): |
| 176 | with nt.assert_raises(BadException): |
no outgoing calls