File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
nipype/interfaces/freesurfer/tests Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -188,25 +188,20 @@ def test_mrisexpand(tmpdir):
188188 assert expand_if .cmdline == orig_cmdline
189189 assert expand_nd .interface .cmdline == orig_cmdline
190190
191- # Run both interfaces
192- if_res = expand_if .run ()
191+ # Run Node interface
193192 nd_res = expand_nd .run ()
194193
195194 # Commandlines differ
196195 node_cmdline = 'mris_expand -T 60 -pial {cwd}/lh.pial {cwd}/lh.smoothwm ' \
197196 '1 expandtmp' .format (cwd = nd_res .runtime .cwd )
198- assert if_res .runtime .cmdline == orig_cmdline
199197 assert nd_res .runtime .cmdline == node_cmdline
200198
201199 # Check output
202- if_out_file = if_res . outputs . get ()['out_file' ]
200+ if_out_file = expand_if . _list_outputs ()['out_file' ]
203201 nd_out_file = nd_res .outputs .get ()['out_file' ]
204202 # Same filename
205203 assert op .basename (if_out_file ) == op .basename (nd_out_file )
206204 # Interface places output in source directory
207205 assert op .dirname (if_out_file ) == op .dirname (fsavginfo ['smoothwm' ])
208206 # Node places output in working directory
209207 assert op .dirname (nd_out_file ) == nd_res .runtime .cwd
210-
211- # Remove test surface
212- os .unlink (if_out_file )
You can’t perform that action at this time.
0 commit comments