Commit Diff


commit - 0df66eae92f910b3a32b9e78f5f06b4d118ff32a
commit + b96357d805aff9883e0e4a25851921225c706114
blob - e8250dd9250d6da8bd65e01e8a9ef0de46b33b34
blob + 4283a26e6d4110faf3086daa86c06e7625581806
--- tests/test_object_store.py
+++ tests/test_object_store.py
@@ -223,11 +223,21 @@ class DiskObjectStoreTests(PackBasedObjectStoreTests, 
         self.assertEqual(
             [os.path.abspath("/foo/path")], list(store._read_alternate_paths())
         )
-        store.add_alternate_path("/bar/path")
-        self.assertEqual(
-            [os.path.abspath("/foo/path"), "/bar/path"],
-            list(store._read_alternate_paths()),
-        )
+        if sys.platform == "win32":
+            store.add_alternate_path("D:\\bar\\path")
+        else:
+            store.add_alternate_path("/bar/path")
+
+        if sys.platform == "win32":
+            self.assertEqual(
+                [os.path.abspath("/foo/path"), "D:\\bar\\path"],
+                list(store._read_alternate_paths()),
+            )
+        else:
+            self.assertEqual(
+                [os.path.abspath("/foo/path"), "/bar/path"],
+                list(store._read_alternate_paths()),
+            )
 
     def test_rel_alternative_path(self):
         alternate_dir = tempfile.mkdtemp()