diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_scalarmath.py | 2 | ||||
-rw-r--r-- | numpy/core/tests/test_umath.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_scalarmath.py b/numpy/core/tests/test_scalarmath.py index a35a9c542..76220d82d 100644 --- a/numpy/core/tests/test_scalarmath.py +++ b/numpy/core/tests/test_scalarmath.py @@ -62,7 +62,7 @@ class TestPower(TestCase): class TestComplexDivision(TestCase): def test_zero_division(self): - err = np.seterr(over="ignore") + err = np.seterr(all="ignore") try: for t in [np.complex64, np.complex128]: a = t(0.0) diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py index 5f5d1257e..32dda95cf 100644 --- a/numpy/core/tests/test_umath.py +++ b/numpy/core/tests/test_umath.py @@ -29,7 +29,7 @@ class TestDivision(TestCase): assert_almost_equal(y/x, [1, 1], err_msg=msg) def test_zero_division_complex(self): - err = np.seterr(invalid="ignore") + err = np.seterr(invalid="ignore", divide="ignore") try: x = np.array([0.0], dtype=np.complex128) y = 1.0/x |