diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2012-02-25 10:24:28 -0800 |
---|---|---|
committer | Mark Wiebe <mwwiebe@gmail.com> | 2012-03-04 12:58:42 -0800 |
commit | e692a7579b89bf43e8456f418e6b625a4e4a4233 (patch) | |
tree | 359c08b6fcab6574a357e24bedb9e78c2758dc00 /numpy/testing | |
parent | eec299b2a384b92a45e6965dadce23b7a40ab250 (diff) | |
download | numpy-e692a7579b89bf43e8456f418e6b625a4e4a4233.tar.gz |
WRN: A small tweak to make deprecation warnings always at least print
Diffstat (limited to 'numpy/testing')
-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) |