Skip to content

Commit 2e9ecc1

Browse files
committed
fix: reset initial state after test (addresses @effigies' review comment)
1 parent a6dab61 commit 2e9ecc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/pipeline/engine/tests/test_join.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def test_join_expansion(tmpdir, needed_outputs):
154154
_sum_operands = []
155155
_sums = []
156156

157+
prev_state = config.get('execution', 'remove_unnecessary_outputs')
157158
config.set('execution', 'remove_unnecessary_outputs', needed_outputs)
158159
# Make the workflow.
159160
wf = pe.Workflow(name='test')
@@ -203,7 +204,7 @@ def test_join_expansion(tmpdir, needed_outputs):
203204
# there are two iterations of the post-join node in the iterable path
204205
assert len(_products) == 2,\
205206
"The number of iterated post-join outputs is incorrect"
206-
207+
config.set('execution', 'remove_unnecessary_outputs', prev_state)
207208

208209

209210
def test_node_joinsource(tmpdir):

0 commit comments

Comments
 (0)