Skip to content

Commit 7ea7dec

Browse files
committed
fix os separater in the test
1 parent 995d834 commit 7ea7dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def test_test_data():
158158
os.path.abspath(os.path.join(os.path.dirname(__file__),
159159
'..', 'tests', 'data')))
160160
for subdir in ('nicom', 'gifti', 'externals'):
161-
assert_equal(test_data(subdir), data_path[:-10] + '%s/tests/data' % subdir)
161+
assert_equal(test_data(subdir), os.path.join(data_path[:-10], subdir, 'tests', 'data'))
162162
assert_true(os.path.exists(test_data(subdir)))
163163
assert_false(os.path.exists(test_data(subdir, 'doesnotexist')))
164164

0 commit comments

Comments
 (0)