diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-02-09 18:51:08 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-02-20 22:03:10 +0000 |
commit | 8d6ec65c925ebef5e0567708de1d16df39077c9d (patch) | |
tree | 89eb436cf6d453f807becfceef773f053b0ba146 /numpy/lib/tests/test_function_base.py | |
parent | eb642f1b6533fcd92e366377f5859e4ea56d5eed (diff) | |
download | numpy-8d6ec65c925ebef5e0567708de1d16df39077c9d.tar.gz |
MAINT: Be specific about where AxisError is raised
These were tested by temporarily removing the base classes from AxisError
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index f69c24d59..d914260ad 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -466,8 +466,8 @@ class TestInsert(TestCase): insert(a, 1, a[:, 2,:], axis=1)) # invalid axis value - assert_raises(IndexError, insert, a, 1, a[:, 2, :], axis=3) - assert_raises(IndexError, insert, a, 1, a[:, 2, :], axis=-4) + assert_raises(np.AxisError, insert, a, 1, a[:, 2, :], axis=3) + assert_raises(np.AxisError, insert, a, 1, a[:, 2, :], axis=-4) # negative axis value a = np.arange(24).reshape((2, 3, 4)) |