Skip to content

Commit 5072f11

Browse files
committed
✅ Normalize path for case-insensitive string comparison on Windows
1 parent a9e4192 commit 5072f11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zcollection/tests/test_fs_utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ def test_normalize_path() -> None:
117117

118118
def istrcmp(str1, str2):
119119
"""Case insensitive string comparison."""
120+
if platform.system() == 'Windows':
121+
str1 = str1.replace('\\', '/')
122+
str2 = str2.replace('\\', '/')
120123
return str1.lower() == str2.lower()
121124

122125
assert istrcmp(fs_utils.normalize_path(fs, '/'), root)

0 commit comments

Comments
 (0)