summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_umath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py
index db0b9e0b9..ddef62642 100644
--- a/numpy/core/tests/test_umath.py
+++ b/numpy/core/tests/test_umath.py
@@ -13,7 +13,7 @@ class TestDivision(TestCase):
def test_division_complex(self):
# check that division is correct
a = np.array([1. + 1.*1j, 1. + .5*1j, 1. + 2.*1j], dtype=np.complex128)
- assert_equal(a**2/a, a)
+ assert_almost_equal(a**2/a, a)
# check overflow, underflow
a = np.array([1.e+110, 1.e-110], dtype=np.complex128)
assert_almost_equal(a**2/a, a)