summaryrefslogtreecommitdiff
path: root/numpy/ma/tests/test_extras.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-02-09 12:51:32 +0000
committerEric Wieser <wieser.eric@gmail.com>2017-02-09 17:09:27 +0000
commit994f8a1dbb137fd4daf881184972637964983ad8 (patch)
tree6db8106c264db8413dc1490f2c4107fa0697c1be /numpy/ma/tests/test_extras.py
parent98b3127fa61e09387e1f7cf925acfcb36043e48a (diff)
downloadpython-numpy-994f8a1dbb137fd4daf881184972637964983ad8.tar.gz
python-numpy-994f8a1dbb137fd4daf881184972637964983ad8.tar.bz2
python-numpy-994f8a1dbb137fd4daf881184972637964983ad8.zip
MAINT: Remove __setslice__ and __getslice__
This code was only here for Python 2.5 compatibility, but numpy requires 2.7 at minimum
Diffstat (limited to 'numpy/ma/tests/test_extras.py')
-rw-r--r--numpy/ma/tests/test_extras.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py
index 58ac46f53..fb68bd261 100644
--- a/numpy/ma/tests/test_extras.py
+++ b/numpy/ma/tests/test_extras.py
@@ -873,7 +873,6 @@ class TestMedian(TestCase):
def test_nan(self):
with suppress_warnings() as w:
w.record(RuntimeWarning)
- w.filter(DeprecationWarning, message=r"in 3\.x, __getslice__")
for mask in (False, np.zeros(6, dtype=np.bool)):
dm = np.ma.array([[1, np.nan, 3], [1, 2, 3]])
dm.mask = mask
@@ -923,7 +922,6 @@ class TestMedian(TestCase):
a[2] = np.nan
with suppress_warnings() as w:
w.record(RuntimeWarning)
- w.filter(DeprecationWarning, message=r"in 3\.x, __getslice__")
assert_array_equal(np.ma.median(a), np.nan)
assert_array_equal(np.ma.median(a, axis=0), np.nan)
assert_(w.log[0].category is RuntimeWarning)
@@ -938,7 +936,6 @@ class TestMedian(TestCase):
# no axis
with suppress_warnings() as w:
w.record(RuntimeWarning)
- w.filter(DeprecationWarning, message=r"in 3\.x, __getslice__")
warnings.filterwarnings('always', '', RuntimeWarning)
assert_array_equal(np.ma.median(a), np.nan)
assert_(np.isscalar(np.ma.median(a)))
@@ -1028,7 +1025,6 @@ class TestMedian(TestCase):
a = np.ma.masked_array(np.array([], dtype=float))
with suppress_warnings() as w:
w.record(RuntimeWarning)
- w.filter(DeprecationWarning, message=r"in 3\.x, __getslice__")
assert_array_equal(np.ma.median(a), np.nan)
assert_(w.log[0].category is RuntimeWarning)
@@ -1037,7 +1033,6 @@ class TestMedian(TestCase):
# no axis
with suppress_warnings() as w:
w.record(RuntimeWarning)
- w.filter(DeprecationWarning, message=r"in 3\.x, __getslice__")
warnings.filterwarnings('always', '', RuntimeWarning)
assert_array_equal(np.ma.median(a), np.nan)
assert_(w.log[0].category is RuntimeWarning)