Test that p.break_ is used in repr
()
| 143 | nt.assert_equal(output, expected) |
| 144 | |
| 145 | def test_pprint_break_repr(): |
| 146 | """ |
| 147 | Test that p.break_ is used in repr |
| 148 | """ |
| 149 | output = pretty.pretty([[BreakingRepr()]]) |
| 150 | expected = "[[Breaking(\n )]]" |
| 151 | nt.assert_equal(output, expected) |
| 152 | |
| 153 | output = pretty.pretty([[BreakingRepr()]*2]) |
| 154 | expected = "[[Breaking(\n ),\n Breaking(\n )]]" |
| 155 | nt.assert_equal(output, expected) |
| 156 | |
| 157 | def test_bad_repr(): |
| 158 | """Don't catch bad repr errors""" |
nothing calls this directly
no test coverage detected