numpy.testing.dec.deprecated¶
-
numpy.testing.dec.deprecated(conditional=True)¶ Filter deprecation warnings while running the test suite.
This decorator can be used to filter DeprecationWarning’s, to avoid printing them during the test suite run, while checking that the test actually raises a DeprecationWarning.
- Parameters
- Returns
- decoratorfunction
The
deprecateddecorator itself.
Notes
New in version 1.4.0.