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_guess_lexer_yaml_j2 ___________________________
def test_guess_lexer_yaml_j2():
# https://github.com/Textualize/rich/issues/2018
code = """\
foobar:
something: {{ raiser() }}
else: {{ 5 + 5 }}
"""
> assert Traceback._guess_lexer("test.yaml.j2", code) == "text"
E AssertionError: assert 'YAML+Jinja' == 'text'
E
E - text
E + YAML+Jinja
tests/test_traceback.py:279: AssertionError
=============================== warnings summary ===============================
tests/test_traceback.py:51
/private/tmp/swe_work/mined_baseline/rich_2225/workspace/tests/test_traceback.py:51: SyntaxWarning: invalid escape sequence '\.'
"^│ .+rich/tests/test_traceback\.py:",
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 14 passed, 1 warning in 0.54s