diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py index 847d7439a1fb..950cb5436de4 100644 --- a/numpy/testing/nosetester.py +++ b/numpy/testing/nosetester.py @@ -360,6 +360,9 @@ def test(self, label='fast', verbose=1, extra_argv=None, # 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)