Skip to content

Commit 09372cd

Browse files
committed
make fix for tab_comnpletion test
due to an error in understanding of dynamic trait instantiation: output spec is actually instantiated in IOBase._outputs(), which calls Function._add_output_traits, which only will add things in self._output_names
1 parent b83a0e8 commit 09372cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/base/tests/test_specs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def extract_func(list_out):
106106
assert(sorted(list_extract.outputs.__all__) == expected_output)
107107

108108
# Add trait and retest
109-
list_extract.outputs.add_trait("added_out_trait","val")
109+
list_extract._interface._output_names.append('added_out_trait')
110110
expected_output = sorted(['added_out_trait',*expected_output])
111111
assert(sorted(list_extract.outputs.__all__) == expected_output)
112112

0 commit comments

Comments
 (0)