Skip to content

Commit 7b04262

Browse files
committed
fix: profile test
1 parent e5bac96 commit 7b04262

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: nipype/interfaces/tests/test_runtime_profiler.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@
1111
from nipype.interfaces.base import (traits, CommandLine, CommandLineInputSpec,
1212
runtime_profile)
1313

14-
run_profile = True
15-
if runtime_profile:
14+
run_profile = runtime_profile
15+
16+
if run_profile:
1617
try:
1718
import psutil
1819
skip_profile_msg = 'Run profiler tests'
1920
except ImportError as exc:
2021
skip_profile_msg = 'Missing python packages for runtime profiling, skipping...\n'\
2122
'Error: %s' % exc
2223
run_profile = False
24+
else:
25+
skip_profile_msg = 'Not running profiler'
2326

2427
# UseResources inputspec
2528
class UseResourcesInputSpec(CommandLineInputSpec):

0 commit comments

Comments
 (0)