fix: Use raw string for backslash in f-string expression

This commit is contained in:
Paul Gauthier (aider) 2025-03-25 10:59:29 -10:00
parent 2727eb6dd7
commit e6c191bdc6

View file

@ -325,7 +325,7 @@ class TestCoder(unittest.TestCase):
# {test_files[1]},
# ),
# Files with Windows-style paths
(f"Edit the file {test_files[2].replace('/', '\\')}", {test_files[2]}),
(f"Edit the file {test_files[2].replace('/', r'\\')}", {test_files[2]}),
# Files with different quote styles
(f'Check "{test_files[5]}" now', {test_files[5]}),
# All files in one complex message