Skip to content

Commit e240b81

Browse files
STY: Apply ruff/refurb rule FURB154
FURB154 Use of repeated consecutive `global`
1 parent 120dc18 commit e240b81

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

nipype/pipeline/engine/tests/test_join.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ class SumInterface(nib.SimpleInterface):
7171
output_spec = SumOutputSpec
7272

7373
def _run_interface(self, runtime):
74-
global _sum
75-
global _sum_operands
74+
global _sum, _sum_operands
7675
runtime.returncode = 0
7776
self._results["operands"] = self.inputs.input1
7877
self._results["output1"] = sum(self.inputs.input1)
@@ -139,9 +138,7 @@ def _list_outputs(self):
139138

140139
@pytest.mark.parametrize("needed_outputs", ["true", "false"])
141140
def test_join_expansion(tmpdir, needed_outputs):
142-
global _sums
143-
global _sum_operands
144-
global _products
141+
global _sums, _sum_operands, _products
145142
tmpdir.chdir()
146143

147144
# Clean up, just in case some other test modified them

0 commit comments

Comments
 (0)