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_highlight_regex[ 1j -spans14] ______________________
test = ' 1j ', spans = [Span(1, 3, 'repr.number_complex')]
@pytest.mark.parametrize("test, spans", highlight_tests)
def test_highlight_regex(test: str, spans: List[Span]):
"""Tests for the regular expressions used in ReprHighlighter."""
text = Text(test)
highlighter = ReprHighlighter()
highlighter.highlight(text)
print(text.spans)
> assert text.spans == spans
E AssertionError: assert [] == [Span(1, 3, '...ber_complex')]
E
E Right contains one more item: Span(1, 3, 'repr.number_complex')
E Use -v to get more diff
tests/test_highlighter.py:131: AssertionError
----------------------------- Captured stdout call -----------------------------
[]
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 15 passed in 0.06s