summaryrefslogtreecommitdiff
path: root/numpy/testing
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2019-06-28 21:56:18 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2019-06-28 21:56:18 -0700
commit402daf2dff1560aa6689f61d9f0f5364d9be15ad (patch)
tree8f3da3ac69571fe1c34eb28dd2c5ac15b466934c /numpy/testing
parent59ebfbbe32bcac4a278c39a9a24b80a42d47a8f6 (diff)
downloadnumpy-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)
Diffstat (limited to 'numpy/testing')
-rw-r--r--numpy/testing/tests/test_decorators.py4
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: