summaryrefslogtreecommitdiff
path: root/numpy/ma
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/ma')
-rw-r--r--numpy/ma/tests/test_extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py
index 547a3fb81..77a5c0fc6 100644
--- a/numpy/ma/tests/test_extras.py
+++ b/numpy/ma/tests/test_extras.py
@@ -732,7 +732,7 @@ class TestMedian(TestCase):
for axis, over in args:
try:
np.ma.median(x, axis=axis, overwrite_input=over)
- except IndexError:
+ except np.AxisError:
pass
else:
raise AssertionError(msg % (mask, ndmin, axis, over))