From 7302280417f38bf028216f5395581e8cb6d94582 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 25 Mar 2025 11:01:44 -1000 Subject: [PATCH] test: Add Windows path handling in file mention tests --- tests/basic/test_coder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/basic/test_coder.py b/tests/basic/test_coder.py index 38dfcc478..6eafa1467 100644 --- a/tests/basic/test_coder.py +++ b/tests/basic/test_coder.py @@ -300,6 +300,9 @@ class TestCoder(unittest.TestCase): "special_chars!@#.md", ] + # Pre-format the Windows path to avoid backslash issues in f-string expressions + windows_path = test_files[2].replace('/', '\\') + for fname in test_files: fpath = Path(fname) fpath.parent.mkdir(parents=True, exist_ok=True)