summaryrefslogtreecommitdiff
path: root/numpy/testing
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2012-04-15 14:49:35 -0600
committerCharles Harris <charlesr.harris@gmail.com>2012-04-15 14:49:35 -0600
commitb86dc69d1b1d2a63998512b9acaedf71cabd732a (patch)
tree57f1c37f749a2860f107a9ebf7af41bc354d7729 /numpy/testing
parentcb9d3592e3fd91bc0081904848df454bd8167b91 (diff)
downloadnumpy-b86dc69d1b1d2a63998512b9acaedf71cabd732a.tar.gz
FIX: Implement Ralph's suggestion of removing category.
Diffstat (limited to 'numpy/testing')
-rw-r--r--numpy/testing/nosetester.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index 23e28a855..024c6e25f 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -362,12 +362,8 @@ class NoseTester(object):
# Force the requested warnings to raise
for warningtype in raise_warnings:
warnings.filterwarnings('error', category=warningtype)
- # ImportWarning not available in Python 2.4
- try:
- warnings.filterwarnings('ignore',
- message='Not importing directory', category=ImportWarning)
- except:
- pass
+ # Filter out annoying import messages.
+ warnings.filterwarnings('ignore', message='Not importing directory')
try:
from noseclasses import NumpyTestProgram