Skip to content

Commit 77aca5f

Browse files
Update nibabel/tests/test_filename_parser.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 6bf8c89 commit 77aca5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_filename_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test__stringify_path():
135135

136136
home = pathlib.Path.home().as_posix()
137137
res = _stringify_path(pathlib.Path('~/fname.ext.gz'))
138-
assert res == str(home) + '/fname.ext.gz'
138+
assert res == f'{home}/fname.ext.gz'
139139

140140
res = _stringify_path(pathlib.Path('./fname.ext.gz'))
141141
assert res == 'fname.ext.gz'

0 commit comments

Comments
 (0)