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

Function test_bad_repr_traceback

tests/test_formatters.py:356–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354
355
356def test_bad_repr_traceback():
357 f = PlainTextFormatter()
358 bad = BadRepr()
359 with capture_output() as captured:
360 result = f(bad)
361 # catches error, returns None
362 assert result is None
363 assert "Traceback" in captured.stdout
364 assert "__repr__" in captured.stdout
365 assert "ValueError" in captured.stdout
366
367
368class MakePDF(object):

Callers

nothing calls this directly

Calls 4

PlainTextFormatterClass · 0.90
capture_outputClass · 0.85
BadReprClass · 0.70
fFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…