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 20c10f1 commit 1e954deCopy full SHA for 1e954de
datalad_dataverse/tests/test_dataset.py
@@ -4,7 +4,10 @@
4
At least as long as we are using that API layer.
5
"""
6
7
-from pathlib import PurePosixPath
+from pathlib import (
8
+ Path,
9
+ PurePosixPath,
10
+)
11
import json
12
13
from datalad_next.tests.utils import md5sum
@@ -58,7 +61,7 @@ def test_file_handling(
58
61
59
62
60
63
def check_rename_file(odd, fileid, name='place.txt'):
- new_path = PurePosixPath('fresh') / name
64
+ new_path = PurePosixPath(*(('fresh',) + Path(name).parts))
65
assert not odd.has_path(new_path)
66
assert odd.has_fileid(fileid)
67
odd.rename_file(new_path, fileid)
0 commit comments