summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2012-04-15 10:10:27 -0700
committerCharles Harris <charlesr.harris@gmail.com>2012-04-15 10:10:27 -0700
commit913e55dddeb922168da56706d2d414dd746eddea (patch)
treea4ec248edb9d575ce9ab35f216f5670c368915ed
parent9dfda59826e894b897aa025910f2cf2b2cf06d92 (diff)
parent08c20a2c23397eed0923e9ca768b4fe26c244730 (diff)
downloadnumpy-913e55dddeb922168da56706d2d414dd746eddea.tar.gz
Merge pull request #251 from rgommers/no-importwarnings
TST: filter ImportWarnings in NoseTester.
-rw-r--r--numpy/testing/nosetester.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index 847d7439a..950cb5436 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -360,6 +360,9 @@ class NoseTester(object):
# If deprecation warnings are not set to 'error' below,
# at least set them to 'warn'.
warnings.filterwarnings('always', category=DeprecationWarning)
+ warnings.filterwarnings('ignore',
+ message='Not importing directory',
+ category=ImportWarning)
# Force the requested warnings to raise
for warningtype in raise_warnings:
warnings.filterwarnings('error', category=warningtype)