We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3da44d commit 65a6568Copy full SHA for 65a6568
upath/tests/cases.py
@@ -1,4 +1,5 @@
1
import pickle
2
+import sys
3
from pathlib import Path
4
5
import pytest
@@ -37,9 +38,10 @@ def test_glob(self, pathlib_base):
37
38
mock_glob = list(self.path.glob("**.txt"))
39
path_glob = list(pathlib_base.glob("**/*.txt"))
40
- mock_glob_normalized = sorted([a.path[1:] for a in mock_glob])
41
+ root = "/" if sys.platform.startswith("win") else ""
42
+ mock_glob_normalized = sorted([a.path for a in mock_glob])
43
path_glob_normalized = sorted(
- [str(a).replace("\\", "/") for a in path_glob]
44
+ [f"{root}{a}".replace("\\", "/") for a in path_glob]
45
)
46
47
assert mock_glob_normalized == path_glob_normalized
0 commit comments