failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
...F
=================================== FAILURES ===================================
________________ test_ipy_display_hook__multiple_special_reprs _________________
def test_ipy_display_hook__multiple_special_reprs():
"""
The case where there are multiple IPython special _repr_*_
methods on the object, and one of them returns None but another
one does not.
"""
console = Console(file=io.StringIO(), force_jupyter=True)
class Thing:
def __repr__(self):
return "A Thing"
def _repr_latex_(self):
return None
def _repr_html_(self):
return "hello"
result = _ipy_display_hook(Thing(), console=console)
> assert result == "A Thing"
E AssertionError: assert None == 'A Thing'
tests/test_pretty.py:90: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 3 passed in 0.13s