summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-10-20 09:33:15 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-10-20 09:33:15 -0600
commit25203e6e8b47b3bf08304273815d6a4b900778f3 (patch)
tree256e7be8a6d6d5378ee19caf667054bc70d8d40e /numpy/lib/tests
parenta08437e12d6b6796f4b0beda49bce9adc37db63d (diff)
downloadnumpy-25203e6e8b47b3bf08304273815d6a4b900778f3.tar.gz
MAINT: Restore test fix that was reverted.
Use assert_array_almost_equal instead of assert_array_equal when comparing against python.math functions.
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 3a4ffd74d..4516c9248 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -732,7 +732,7 @@ class TestVectorize(TestCase):
args = np.array([0, 0.5 * np.pi, np.pi, 1.5 * np.pi, 2 * np.pi])
r1 = f(args)
r2 = np.cos(args)
- assert_array_equal(r1, r2)
+ assert_array_almost_equal(r1, r2)
def test_keywords(self):