Skip to content

Commit 47f4dcc

Browse files
Ensure posix test strings
1 parent e6e8d40 commit 47f4dcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/tests/test_filename_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ def test_splitext_addext():
127127

128128

129129
def test__stringify_path():
130-
current_directory = pathlib.Path.cwd()
130+
current_directory = pathlib.Path.cwd().as_posix()
131131
res = _stringify_path('fname.ext.gz')
132132
assert res == 'fname.ext.gz'
133133
res = _stringify_path(pathlib.Path('fname.ext.gz'))
134134
assert res == 'fname.ext.gz'
135135

136-
home = pathlib.Path.home()
136+
home = pathlib.Path.home().as_posix()
137137
res = _stringify_path(pathlib.Path('~/fname.ext.gz'))
138138
assert res == str(home) + '/fname.ext.gz'
139139

0 commit comments

Comments
 (0)