Skip to content

Commit 11571f7

Browse files
committed
Revert "fix: added test for deepcopy bug"
This reverts commit 36166c4.
1 parent 90127ef commit 11571f7

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

nipype/interfaces/tests/test_base.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class spec(nib.TraitedSpec):
9191
#yield assert_equal, infields.hashval[1], hashval[1]
9292
yield assert_equal, infields.__repr__(), '\nfoo = 1\ngoo = 0.0\n'
9393

94-
def test_TraitedSpec_pickle():
94+
def test_TraitedSpec_dynamic():
9595
from cPickle import dumps, loads
9696
a = nib.BaseTraitedSpec()
9797
a.add_trait('foo', nib.traits.Int)
@@ -103,17 +103,6 @@ def test_TraitedSpec_pickle():
103103
assign_a_again = lambda : setattr(unpkld_a, 'foo', 'a')
104104
yield assert_raises, Exception, assign_a_again
105105

106-
def test_TraitedSpec_deepcopy():
107-
from copy import deepcopy
108-
a = nib.DynamicTraitedSpec()
109-
a.add_trait('foo', nib.traits.Int)
110-
a.foo = 1
111-
assign_a = lambda : setattr(a, 'foo', 'a')
112-
yield assert_raises, Exception, assign_a
113-
unpkld_a = deepcopy(a)
114-
assign_a_again = lambda : setattr(unpkld_a, 'foo', 'a')
115-
yield assert_raises, Exception, assign_a_again
116-
117106
def test_TraitedSpec_logic():
118107
class spec3(nib.TraitedSpec):
119108
_xor_inputs = ('foo', 'bar')

0 commit comments

Comments
 (0)