diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-04-15 10:10:27 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-04-15 10:10:27 -0700 |
commit | 913e55dddeb922168da56706d2d414dd746eddea (patch) | |
tree | a4ec248edb9d575ce9ab35f216f5670c368915ed /numpy | |
parent | 9dfda59826e894b897aa025910f2cf2b2cf06d92 (diff) | |
parent | 08c20a2c23397eed0923e9ca768b4fe26c244730 (diff) | |
download | numpy-913e55dddeb922168da56706d2d414dd746eddea.tar.gz |
Merge pull request #251 from rgommers/no-importwarnings
TST: filter ImportWarnings in NoseTester.
Diffstat (limited to 'numpy')
-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 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) |