Skip to content

Commit 1e954de

Browse files
convert windows paths properly into posix path
1 parent 20c10f1 commit 1e954de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

datalad_dataverse/tests/test_dataset.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
At least as long as we are using that API layer.
55
"""
66

7-
from pathlib import PurePosixPath
7+
from pathlib import (
8+
Path,
9+
PurePosixPath,
10+
)
811
import json
912

1013
from datalad_next.tests.utils import md5sum
@@ -58,7 +61,7 @@ def test_file_handling(
5861

5962

6063
def check_rename_file(odd, fileid, name='place.txt'):
61-
new_path = PurePosixPath('fresh') / name
64+
new_path = PurePosixPath(*(('fresh',) + Path(name).parts))
6265
assert not odd.has_path(new_path)
6366
assert odd.has_fileid(fileid)
6467
odd.rename_file(new_path, fileid)

0 commit comments

Comments
 (0)