MCPcopy Index your code
hub / github.com/ipython/ipython / test_pprint_break_repr

Function test_pprint_break_repr

tests/test_pretty.py:175–185  ·  view source on GitHub ↗

Test that p.break_ is used in repr

()

Source from the content-addressed store, hash-verified

173
174
175def test_pprint_break_repr():
176 """
177 Test that p.break_ is used in repr
178 """
179 output = pretty.pretty([[BreakingRepr()]])
180 expected = "[[Breaking(\n )]]"
181 assert output == expected
182
183 output = pretty.pretty([[BreakingRepr()] * 2])
184 expected = "[[Breaking(\n ),\n Breaking(\n )]]"
185 assert output == expected
186
187
188def test_bad_repr():

Callers

nothing calls this directly

Calls 2

BreakingReprClass · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…