Skip to content

Commit ef8152a

Browse files
committed
BF: fix file-access test error on Windows
Need to close file on Windows before deleting.
1 parent 1475594 commit ef8152a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nibabel/tests/test_fileutils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ def test_read_zt_byte_strings():
5454
fread.seek(0)
5555
assert_equal(read_zt_byte_strings(fread, 2, 4),
5656
[b'test.fmr', b'test.prt'])
57+
fread.close()

0 commit comments

Comments
 (0)