diff options
author | Joscha Reimer <jor@informatik.uni-kiel.de> | 2018-07-30 10:37:51 +0200 |
---|---|---|
committer | Joscha Reimer <jor@informatik.uni-kiel.de> | 2018-07-30 10:37:51 +0200 |
commit | a87168023f0e99e2481c62855f2e14f4653a1a46 (patch) | |
tree | 4cd71cbff010615a3306aa6bb72108a17014a3a2 /numpy/lib/tests | |
parent | 878bad2320910a24335401b37415c50442825ae6 (diff) | |
download | numpy-a87168023f0e99e2481c62855f2e14f4653a1a46.tar.gz |
API: isposinf and isneginf now raise TypeError instead of ValueError for complex values
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r-- | numpy/lib/tests/test_ufunclike.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_ufunclike.py b/numpy/lib/tests/test_ufunclike.py index 7c41ed1a3..889ee77e3 100644 --- a/numpy/lib/tests/test_ufunclike.py +++ b/numpy/lib/tests/test_ufunclike.py @@ -22,7 +22,7 @@ class TestUfunclike(object): assert_equal(out, tgt) a = a.astype(np.complex) - with assert_raises(ValueError): + with assert_raises(TypeError): ufl.isposinf(a) def test_isneginf(self): @@ -37,7 +37,7 @@ class TestUfunclike(object): assert_equal(out, tgt) a = a.astype(np.complex) - with assert_raises(ValueError): + with assert_raises(TypeError): ufl.isneginf(a) def test_fix(self): |