Skip to content

Commit cb0892b

Browse files
committed
fix: reset test_nodes so that the OutputMultiObject issue surfaces
Once we figure out the problem of ``OutputMultiObject``, we could go ahead and set fix #2944, fix nipreps/fmriprep#1674, close #2945.
1 parent d9c3613 commit cb0892b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nipype/pipeline/engine/tests/test_nodes.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,13 @@ def test_inputs_removal(tmpdir):
295295
def test_outputmultipath_collapse(tmpdir):
296296
"""Test an OutputMultiPath whose initial value is ``[[x]]`` to ensure that
297297
it is returned as ``[x]``, regardless of how accessed."""
298-
select_if = niu.Select(inlist=[[1, 2, 3], [4, 5]], index=1)
299-
select_nd = pe.Node(niu.Select(inlist=[[1, 2, 3], [4, 5]], index=1),
298+
select_if = niu.Select(inlist=[[1, 2, 3], [4]], index=1)
299+
select_nd = pe.Node(niu.Select(inlist=[[1, 2, 3], [4]], index=1),
300300
name='select_nd')
301301

302302
ifres = select_if.run()
303303
ndres = select_nd.run()
304304

305-
assert ifres.outputs.out == [4, 5]
306-
assert ndres.outputs.out == [4, 5]
307-
assert select_nd.result.outputs.out == [4, 5]
305+
assert ifres.outputs.out == [4]
306+
assert ndres.outputs.out == [4]
307+
assert select_nd.result.outputs.out == [4]

0 commit comments

Comments
 (0)