summaryrefslogtreecommitdiff
path: root/numpy/ma/tests/test_extras.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-03-26 11:22:43 +0100
committerEric Wieser <wieser.eric@gmail.com>2017-03-28 20:44:49 +0100
commite3ed705e5d91b584e9191a20f3a4780d354271ff (patch)
tree3135198039924e2b01a875570e8dc85980af6f22 /numpy/ma/tests/test_extras.py
parent539d4f7ef561ac86ea4f3b81bf1eb9b3ac03b67f (diff)
downloadpython-numpy-e3ed705e5d91b584e9191a20f3a4780d354271ff.tar.gz
python-numpy-e3ed705e5d91b584e9191a20f3a4780d354271ff.tar.bz2
python-numpy-e3ed705e5d91b584e9191a20f3a4780d354271ff.zip
MAINT: Use _validate_axis inside _ureduce
This fixes an omission where duplicate axes would only be detected when positive
Diffstat (limited to 'numpy/ma/tests/test_extras.py')
-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))