()
| 584 | |
| 585 | |
| 586 | def 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 | |
| 597 | def test_custom_repr_namedtuple_partialmethod(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…