File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 21
21
skipif = dec .skipif
22
22
slow = dec .slow
23
23
24
+ from ..deprecated import deprecate_with_version as _deprecate_with_version
25
+
24
26
# Allow failed import of nose if not now running tests
25
27
try :
26
28
from nose .tools import (assert_equal , assert_not_equal ,
@@ -187,12 +189,11 @@ class suppress_warnings(error_warnings):
187
189
filter = 'ignore'
188
190
189
191
192
+ @_deprecate_with_version ('catch_warn_reset is deprecated; use '
193
+ 'nibabel.testing.clear_and_catch_warnings.' ,
194
+ since = '2.1.0' , until = '3.0.0' )
190
195
class catch_warn_reset (clear_and_catch_warnings ):
191
-
192
- def __init__ (self , * args , ** kwargs ):
193
- warnings .warn ('catch_warn_reset is deprecated and will be removed in '
194
- 'nibabel v3.0; use nibabel.testing.clear_and_catch_warnings.' ,
195
- FutureWarning )
196
+ pass
196
197
197
198
198
199
EXTRA_SET = os .environ .get ('NIPY_EXTRA_TESTS' , '' ).split (',' )
You can’t perform that action at this time.
0 commit comments