diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-01-31 09:38:14 -0800 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-02-03 11:36:30 -0800 |
commit | ef70f13177a53266fd8547da6e00bc252a057893 (patch) | |
tree | b836e830ac216985e27c3f6e63e582df2bbab91c /numpy/lib/tests/test_arraysetops.py | |
parent | 2854d508d1c6d211f2ce99e8747eda1cb427a78a (diff) | |
download | numpy-ef70f13177a53266fd8547da6e00bc252a057893.tar.gz |
MAINT: Use AxisError in swapaxes
Diffstat (limited to 'numpy/lib/tests/test_arraysetops.py')
-rw-r--r-- | numpy/lib/tests/test_arraysetops.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py index c2ba7ac86..17415d8fe 100644 --- a/numpy/lib/tests/test_arraysetops.py +++ b/numpy/lib/tests/test_arraysetops.py @@ -409,8 +409,8 @@ class TestUnique(object): assert_raises(TypeError, self._run_axis_tests, [('a', int), ('b', object)]) - assert_raises(ValueError, unique, np.arange(10), axis=2) - assert_raises(ValueError, unique, np.arange(10), axis=-2) + assert_raises(np.AxisError, unique, np.arange(10), axis=2) + assert_raises(np.AxisError, unique, np.arange(10), axis=-2) def test_unique_axis_list(self): msg = "Unique failed on list of lists" |