Skip to content

Commit 4c58cb6

Browse files
committed
Normalize path separators in tests under Windows
1 parent 3c79c6d commit 4c58cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cli_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _load_tree(root, replace_name=None):
5252
if not replace_name:
5353
replace_name = str(root)
5454
return {
55-
x.relative_to(root).name: x.read_text().replace(replace_name, 'ROOT')
55+
x.relative_to(root).name: x.read_text().replace(replace_name, 'ROOT').replace('\\', '/')
5656
for x in root.glob('**/*.txt')
5757
}
5858

0 commit comments

Comments
 (0)