Skip to content

Commit bc3a0b5

Browse files
authored
fix: memory checking only when profiling is true
1 parent 972754a commit bc3a0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/pipeline/plugins/tests/test_multiproc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import nipype.interfaces.base as nib
88
from nipype.utils import draw_gantt_chart
9-
from nipype.testing import assert_equal
9+
from nipype.testing import assert_equal, skipif
1010
import nipype.pipeline.engine as pe
1111
from nipype.pipeline.plugins.callback_log import log_nodes_cb
1212
from nipype.pipeline.plugins.multiproc import get_system_total_memory_gb
@@ -180,7 +180,7 @@ def test_do_not_use_more_memory_then_specified():
180180

181181
os.remove(LOG_FILENAME)
182182

183-
183+
@skipif(nib.runtime_profile == False)
184184
def test_do_not_use_more_threads_then_specified():
185185
LOG_FILENAME = 'callback.log'
186186
my_logger = logging.getLogger('callback')

0 commit comments

Comments
 (0)