File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 2121skipif = dec .skipif
2222slow = dec .slow
2323
24+ from ..deprecated import deprecate_with_version as _deprecate_with_version
25+
2426# Allow failed import of nose if not now running tests
2527try :
2628 from nose .tools import (assert_equal , assert_not_equal ,
@@ -187,12 +189,11 @@ class suppress_warnings(error_warnings):
187189 filter = 'ignore'
188190
189191
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' )
190195class 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
196197
197198
198199EXTRA_SET = os .environ .get ('NIPY_EXTRA_TESTS' , '' ).split (',' )
You can’t perform that action at this time.
0 commit comments