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