MCPcopy Create free account
hub / github.com/ipython/ipython / test_repr_mime_failure

Function test_repr_mime_failure

IPython/core/tests/test_formatters.py:525–533  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

523 })
524
525def test_repr_mime_failure():
526 class BadReprMime(object):
527 def _repr_mimebundle_(self, include=None, exclude=None):
528 raise RuntimeError
529
530 f = get_ipython().display_formatter
531 obj = BadReprMime()
532 d, md = f.format(obj)
533 nt.assert_in('text/plain', d)

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
BadReprMimeClass · 0.85
formatMethod · 0.45

Tested by

no test coverage detected