summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorJohn Kirkham <kirkhamj@janelia.hhmi.org>2016-01-15 16:12:20 -0500
committerJohn Kirkham <kirkhamj@janelia.hhmi.org>2016-01-15 16:12:20 -0500
commit852eabaa98962d4eb203e1eb2e4d6468cb20ecd0 (patch)
treedf573a99fd2a13826c398ef5e206ac7d4e475528 /numpy/lib/tests
parent2f7e491aeeb77fb9d40c9108e57922b876077c3c (diff)
downloadnumpy-852eabaa98962d4eb203e1eb2e4d6468cb20ecd0.tar.gz
TEST: Ignore `FutureWarning` if raised from running masked array operations.
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_nanfunctions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_nanfunctions.py b/numpy/lib/tests/test_nanfunctions.py
index 7a7b37b98..dafc194eb 100644
--- a/numpy/lib/tests/test_nanfunctions.py
+++ b/numpy/lib/tests/test_nanfunctions.py
@@ -539,6 +539,7 @@ class TestNanFunctions_Median(TestCase):
for axis in [None, 0, 1]:
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
+ warnings.simplefilter('ignore', FutureWarning)
assert_(np.isnan(np.nanmedian(mat, axis=axis)).all())
if axis is None:
assert_(len(w) == 1)