summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-01-15 18:01:49 -0700
committerCharles Harris <charlesr.harris@gmail.com>2016-01-15 18:01:49 -0700
commit880e323c94cdeab665c70b1ae3fbd4c9cd9f9c09 (patch)
tree39f219fa2c7c846fd45f2fb69461e4e7536842e9 /numpy/lib/tests
parentc45f3e7d56686590af9b27829a505de709702563 (diff)
parent4989360f6bb57e45e1a6f624144117bfd3511313 (diff)
downloadnumpy-880e323c94cdeab665c70b1ae3fbd4c9cd9f9c09.tar.gz
Merge pull request #7020 from jakirkham/deprecated_masked_array_mask_copy
DEP: Warn MaskedArray will return views of mask when sliced
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)