← mined_baseline

rich_2188

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich

Task input

(not found in data/tasks.jsonl)

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
..F
=================================== FAILURES ===================================
_________________________________ test_escape __________________________________

    def test_escape():
        # Potential tags
        assert escape("foo[bar]") == r"foo\[bar]"
        assert escape(r"foo\[bar]") == r"foo\\\[bar]"
    
        # Not tags (escape not required)
        assert escape("[5]") == "[5]"
        assert escape("\\[5]") == "\\[5]"
    
        # Test @ escape
        assert escape("[@foo]") == "\\[@foo]"
        assert escape("[@]") == "\\[@]"
    
        # https://github.com/Textualize/rich/issues/2187
>       assert escape("[nil, [nil]]") == r"[nil, \[nil]]"
E       AssertionError: assert '\\[nil, [nil]]' == '[nil, \\[nil]]'
E         
E         - [nil, \[nil]]
E         ?       -
E         + \[nil, [nil]]
E         ? +

tests/test_markup.py:44: AssertionError
=============================== warnings summary ===============================
tests/test_markup.py:147
  /private/tmp/swe_work/mined_baseline/rich_2188/workspace/tests/test_markup.py:147: SyntaxWarning: invalid escape sequence '\['
    result = str(render("[dim white]\[url=[/]"))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 2 passed, 1 warning in 0.11s