diff options
author | Marten van Kerkwijk <mhvk@astro.utoronto.ca> | 2017-02-21 15:58:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-21 15:58:08 -0500 |
commit | 2aabeafb97bea4e1bfa29d946fbf31e1104e7ae0 (patch) | |
tree | 2cd08a2211a3ec1f7403c17dd175aca73a93bccb /numpy/lib/tests/test_function_base.py | |
parent | 070b9660282288fa8bb376533667f31613373337 (diff) | |
parent | 8d6ec65c925ebef5e0567708de1d16df39077c9d (diff) | |
download | numpy-2aabeafb97bea4e1bfa29d946fbf31e1104e7ae0.tar.gz |
Merge pull request #8584 from eric-wieser/resolve_axis
MAINT: Use the same exception for all bad axis requests
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)) |