diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-10-20 09:33:15 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-10-20 09:33:15 -0600 |
commit | 25203e6e8b47b3bf08304273815d6a4b900778f3 (patch) | |
tree | 256e7be8a6d6d5378ee19caf667054bc70d8d40e /numpy/lib/tests | |
parent | a08437e12d6b6796f4b0beda49bce9adc37db63d (diff) | |
download | numpy-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.py | 2 |
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): |