File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
nipype/pipeline/engine/tests Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ class SumInterface(nib.SimpleInterface):
71
71
output_spec = SumOutputSpec
72
72
73
73
def _run_interface (self , runtime ):
74
- global _sum
75
- global _sum_operands
74
+ global _sum , _sum_operands
76
75
runtime .returncode = 0
77
76
self ._results ["operands" ] = self .inputs .input1
78
77
self ._results ["output1" ] = sum (self .inputs .input1 )
@@ -139,9 +138,7 @@ def _list_outputs(self):
139
138
140
139
@pytest .mark .parametrize ("needed_outputs" , ["true" , "false" ])
141
140
def test_join_expansion (tmpdir , needed_outputs ):
142
- global _sums
143
- global _sum_operands
144
- global _products
141
+ global _sums , _sum_operands , _products
145
142
tmpdir .chdir ()
146
143
147
144
# Clean up, just in case some other test modified them
You can’t perform that action at this time.
0 commit comments