Skip to content

Commit 41d831d

Browse files
authored
Merge pull request #2133 from effigies/test/no_touch
TEST: Do not modify SUBJECTS_DIR contents
2 parents 43b2406 + 98f422e commit 41d831d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

nipype/interfaces/freesurfer/tests/test_utils.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)