Skip to content

Commit 19aadfc

Browse files
tzilio-clsclaude
andcommitted
fix: normalize root path separator in test_normalize_path on Windows
replace('\\', '') stripped the trailing slash entirely, giving 'D:' while normalize_path returns 'D:/'. Convert to forward slash instead so both sides match. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4a51934 commit 19aadfc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

zcollection/tests/test_fs_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ def test_normalize_path() -> None:
114114
fs = fsspec.filesystem('file')
115115
root = str(pathlib.Path('/').resolve())
116116
if platform.system() == 'Windows':
117-
# fsspec returns only the drive letter for the root path.
118-
root = root.replace('\\', '')
117+
root = root.replace('\\', '/')
119118

120119
def istrcmp(str1, str2):
121120
"""Case insensitive string comparison."""

0 commit comments

Comments
 (0)