From 6b86696648695ac7ee2415f3693eb4986ff88a04 Mon Sep 17 00:00:00 2001 From: huseyin-emre-tigci Date: Fri, 14 Aug 2026 18:09:24 +0300 Subject: [PATCH] Spell the Windows paths with forward slashes in the directories test A backslash only separates on Windows, and this test also runs on the Linux that checks the Windows half. Co-Authored-By: Claude Fable 5 --- tests/test_config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_config.py b/tests/test_config.py index fec1417..7d0a031 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -492,8 +492,10 @@ class Directories(unittest.TestCase): self.assertNotIn("/c", config_dir.as_posix()) def test_windows_keeps_settings_and_data_apart(self): - with mock.patch.dict(os.environ, {"APPDATA": r"C:\roam", - "LOCALAPPDATA": r"C:\local"}): + # Forward slashes, because a backslash only separates on Windows and + # this test also runs on the Linux that checks the Windows half. + with mock.patch.dict(os.environ, {"APPDATA": "C:/roam", + "LOCALAPPDATA": "C:/local"}): config_dir, data_dir = cfg._directories("win32") self.assertEqual(config_dir.as_posix(), "C:/roam/Dikte") self.assertEqual(data_dir.as_posix(), "C:/local/Dikte")