diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2009-07-07 02:56:24 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2009-07-07 02:56:24 +0000 |
commit | 65a78ef1a76fd9cceb64ddfd57a8edb5e16bf2c6 (patch) | |
tree | 7decb94e82de9a1bc49c59ecf3d75c520cb6a2b1 | |
parent | 48ba48254a8c90322408b15ac45d1f5ab8b5570c (diff) | |
download | numpy-65a78ef1a76fd9cceb64ddfd57a8edb5e16bf2c6.tar.gz |
Replace another assert_equal in test_division_umath.
-rw-r--r-- | numpy/core/tests/test_umath.py | 2 |
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) |