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 6bf8c89 commit 77aca5fCopy full SHA for 77aca5f
nibabel/tests/test_filename_parser.py
@@ -135,7 +135,7 @@ def test__stringify_path():
135
136
home = pathlib.Path.home().as_posix()
137
res = _stringify_path(pathlib.Path('~/fname.ext.gz'))
138
- assert res == str(home) + '/fname.ext.gz'
+ assert res == f'{home}/fname.ext.gz'
139
140
res = _stringify_path(pathlib.Path('./fname.ext.gz'))
141
assert res == 'fname.ext.gz'
0 commit comments