failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich
Fix escaping trailing backslash Fixes https://github.com/Textualize/rich/issues/2987
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
...F
=================================== FAILURES ===================================
__________________________ test_escape_backslash_end ___________________________
def test_escape_backslash_end():
# https://github.com/Textualize/rich/issues/2987
value = "C:\\"
> assert escape(value) == "C:\\\\"
E AssertionError: assert 'C:\\' == 'C:\\\\'
E
E - C:\\
E ? -
E + C:\
tests/test_markup.py:50: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 3 passed in 0.15s