summaryrefslogtreecommitdiff
path: root/numpy/testing/tests/test_utils.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-07-28 06:31:46 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-07-28 06:31:46 +0000
commit15f9f6911af9b3fd9a28e09d344d40bb721e60b9 (patch)
treebf316f9c641da284df06b183d95a34961c235630 /numpy/testing/tests/test_utils.py
parent3feb77ee4e46962b6c9cfab2a37a0c1ef1ceda82 (diff)
downloadnumpy-15f9f6911af9b3fd9a28e09d344d40bb721e60b9.tar.gz
BUG: handle inf/nan correctly in assert_array_almost_equal.
Diffstat (limited to 'numpy/testing/tests/test_utils.py')
-rw-r--r--numpy/testing/tests/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index 448a2e3e7..0ecf0622d 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -209,6 +209,7 @@ class TestAlmostEqual(_GenericTest, unittest.TestCase):
def test_complex_item(self):
self._assert_func(complex(1, 2), complex(1, 2))
self._assert_func(complex(1, np.nan), complex(1, np.nan))
+ self._assert_func(complex(np.inf, np.nan), complex(np.inf, np.nan))
self._test_not_equal(complex(1, np.nan), complex(1, 2))
self._test_not_equal(complex(np.nan, 1), complex(1, np.nan))
self._test_not_equal(complex(np.nan, np.inf), complex(np.nan, 2))