diff options
Diffstat (limited to 'numpy/testing/nosetester.py')
-rw-r--r-- | numpy/testing/nosetester.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py index b920399eb..5c66e497e 100644 --- a/numpy/testing/nosetester.py +++ b/numpy/testing/nosetester.py @@ -409,9 +409,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) + # Set all warnings to 'warn', this is because the default 'once' + # has the bad property of possibly shadowing later warnings. + warnings.filterwarnings('always') # Force the requested warnings to raise for warningtype in raise_warnings: warnings.filterwarnings('error', category=warningtype) |