numpy.testing.decorators.deprecated(conditional=True)
[source]
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: |
|
New in version 1.4.0.
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.testing.decorators.deprecated.html