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

Function test_repr_mime_failure

tests/test_formatters.py:586–594  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

584
585
586def test_repr_mime_failure():
587 class BadReprMime(object):
588 def _repr_mimebundle_(self, include=None, exclude=None):
589 raise RuntimeError
590
591 f = get_ipython().display_formatter
592 obj = BadReprMime()
593 d, md = f.format(obj)
594 assert "text/plain" in d
595
596
597def test_custom_repr_namedtuple_partialmethod():

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
BadReprMimeClass · 0.85
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…