Skip to content

Commit 813144e

Browse files
committed
test: Proactively delete potential filehandle refs
1 parent 10a69b7 commit 813144e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nibabel/tests/test_proxy_api.py

+4
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ def validate_array_interface_with_dtype(self, pmaker, params):
166166
assert_dt_equal(out.dtype, np.dtype(dtype))
167167
# Shape matches expected shape
168168
assert out.shape == params['shape']
169+
del out
170+
del direct
171+
172+
del orig
169173

170174
if context is not None:
171175
context.__exit__()

0 commit comments

Comments
 (0)