diff options
-rw-r--r-- | numpy/testing/nosetester.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py index 682a6be23..2fb08603e 100644 --- a/numpy/testing/nosetester.py +++ b/numpy/testing/nosetester.py @@ -338,6 +338,9 @@ class NoseTester(object): # Reset the warning filters to the default state, # so that running the tests is more repeatable. warnings.resetwarnings() + # If deprecation warnings are not set to 'error' below, + # at least set them to 'warn' + warnings.filterwarnings('always', category=DeprecationWarning) # Force the requested warnings to raise for warningtype in raisewarnings: warnings.filterwarnings('error', category=warningtype) |