diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2019-06-28 21:56:18 -0700 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2019-06-28 21:56:18 -0700 |
commit | 402daf2dff1560aa6689f61d9f0f5364d9be15ad (patch) | |
tree | 8f3da3ac69571fe1c34eb28dd2c5ac15b466934c | |
parent | 59ebfbbe32bcac4a278c39a9a24b80a42d47a8f6 (diff) | |
download | numpy-402daf2dff1560aa6689f61d9f0f5364d9be15ad.tar.gz |
TST: Ignore DeprecationWarning during nose imports
Nose is outdated and causes a DeprecationWarning during import,
a change in pytest seems to now trip over the warning, so ignore
it (in a slightly ugly manner)
-rw-r--r-- | numpy/testing/tests/test_decorators.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/testing/tests/test_decorators.py b/numpy/testing/tests/test_decorators.py index bb3ea1acb..c029bf90c 100644 --- a/numpy/testing/tests/test_decorators.py +++ b/numpy/testing/tests/test_decorators.py @@ -13,7 +13,9 @@ from numpy.testing import ( try: - import nose # noqa: F401 + with warnings.catch_warnings(): + warnings.simplefilter("always") + import nose # noqa: F401 except ImportError: HAVE_NOSE = False else: |