Skip to content

Commit 2537030

Browse files
committed
fix: use deepcopy
1 parent ba15d5f commit 2537030

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/interfaces/fsl/tests/test_preprocess.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import os
99
import tempfile
10+
from copy import deepcopy
1011

1112
import pytest
1213
from nipype.utils.filemanip import split_filename, filename_to_list
@@ -236,11 +237,11 @@ def test_flirt(setup_flirt):
236237
assert flirter.cmdline == realcmd
237238

238239
# test apply_xfm option
239-
axfm = flirter
240+
axfm = deepcopy(flirter)
240241
axfm.inputs.apply_xfm = True
241242
# in_matrix_file or uses_qform must be defined
242243
with pytest.raises(RuntimeError): axfm.cmdline
243-
axfm2 = axfm
244+
axfm2 = deepcopy(axfm)
244245
# test uses_qform
245246
axfm.inputs.uses_qform = True
246247
assert axfm.cmdline == (realcmd + ' -applyxfm -usesqform')

0 commit comments

Comments
 (0)