Skip to content

Commit b6a2e68

Browse files
committed
DOCTEST: Delete reference to mmap data to avoid warning
1 parent 5e7795b commit b6a2e68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nibabel/externals/netcdf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ class netcdf_file(object):
225225
to be copied to main memory:
226226
227227
>>> data = time[:].copy()
228+
>>> del time # References to mmap'd objects can delay full closure
228229
>>> f.close()
229230
>>> data.mean()
230231
4.5
@@ -237,7 +238,7 @@ class netcdf_file(object):
237238
238239
Delete our temporary directory and file:
239240
240-
>>> del f, time # needed for windows unlink
241+
>>> del f # needed for windows unlink
241242
>>> os.unlink(fname)
242243
>>> os.rmdir(tmp_pth)
243244
"""

0 commit comments

Comments
 (0)