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/linalg/tests | |
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/linalg/tests')
-rw-r--r-- | numpy/linalg/tests/test_linalg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index 2f8058ae6..b0a1f04d0 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -1102,8 +1102,8 @@ class _TestNorm(object): assert_raises(ValueError, norm, B, order, (1, 2)) # Invalid axis - assert_raises(IndexError, norm, B, None, 3) - assert_raises(IndexError, norm, B, None, (2, 3)) + assert_raises(np.AxisError, norm, B, None, 3) + assert_raises(np.AxisError, norm, B, None, (2, 3)) assert_raises(ValueError, norm, B, None, (0, 1, 2)) |