Skip to content

Commit b261208

Browse files
committed
removing one test from interfaces/tests/test_base.py; it was repeating the same assert as the previous one
1 parent 9fb7730 commit b261208

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

nipype/interfaces/tests/test_base.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,6 @@ class DeprecationSpec1(nib.TraitedSpec):
156156
with pytest.raises(nib.TraitError): set_foo()
157157
assert len(w) == 0, 'no warnings, just errors'
158158

159-
with warnings.catch_warnings(record=True) as w:
160-
warnings.filterwarnings('always', '', UserWarning)
161-
162-
class DeprecationSpec1numeric(nib.TraitedSpec):
163-
foo = nib.traits.Int(deprecated='0.1')
164-
spec_instance = DeprecationSpec1numeric()
165-
set_foo = lambda: setattr(spec_instance, 'foo', 1)
166-
with pytest.raises(nib.TraitError): set_foo()
167-
assert len(w) == 0, 'no warnings, just errors'
168159

169160
with warnings.catch_warnings(record=True) as w:
170161
warnings.filterwarnings('always', '', UserWarning)

0 commit comments

Comments
 (0)