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 e6e8d40 commit 47f4dccCopy full SHA for 47f4dcc
nibabel/tests/test_filename_parser.py
@@ -127,13 +127,13 @@ def test_splitext_addext():
127
128
129
def test__stringify_path():
130
- current_directory = pathlib.Path.cwd()
+ current_directory = pathlib.Path.cwd().as_posix()
131
res = _stringify_path('fname.ext.gz')
132
assert res == 'fname.ext.gz'
133
res = _stringify_path(pathlib.Path('fname.ext.gz'))
134
135
136
- home = pathlib.Path.home()
+ home = pathlib.Path.home().as_posix()
137
res = _stringify_path(pathlib.Path('~/fname.ext.gz'))
138
assert res == str(home) + '/fname.ext.gz'
139
0 commit comments