Skip to content

Commit 6ecf94b

Browse files
committed
TEST: Delete arrayproxies, allowing Windows to close filehandles
1 parent 06ae4a5 commit 6ecf94b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nibabel/tests/test_arrayproxy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ def test_keep_file_open_true_false_invalid():
381381
x , y, z = [int(c) for c in voxels[i, :]]
382382
assert proxy_kfp[x, y, z] == x * 100 + y * 10 + z
383383
assert CountingImageOpener.num_openers == 1
384+
del proxy_kfp
385+
del proxy_no_kfp
384386
# Test that the keep_file_open flag has no effect if an open file
385387
# handle is passed in
386388
with open(fname, 'rb') as fobj:

0 commit comments

Comments
 (0)