Skip to content

Commit 283a580

Browse files
committed
FIX: Explicit close/del
1 parent 11afc4a commit 283a580

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

surfer/tests/test_viz.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import gc
12
import os
23
import os.path as op
34
from os.path import join as pjoin
@@ -210,6 +211,17 @@ def test_data():
210211
brain.close()
211212

212213

214+
@requires_fsaverage()
215+
def test_close():
216+
"""Test that close and del actually work."""
217+
_set_backend()
218+
brain = Brain('fsaverage', 'both', 'inflated')
219+
brain.close()
220+
brain.__del__()
221+
del brain
222+
gc.collect()
223+
224+
213225
@requires_fsaverage()
214226
def test_data_limits():
215227
"""Test handling of data limits."""

0 commit comments

Comments
 (0)