From eb4a76a4eb6785d022f85d5019fa3a5900a2ddf5 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Fri, 4 Mar 2016 15:14:44 +0100 Subject: [PATCH] Small fix to Legendre root Python tests --- python/libsharp/tests/test_legendre.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/libsharp/tests/test_legendre.py b/python/libsharp/tests/test_legendre.py index 7860d2a..321fa9c 100644 --- a/python/libsharp/tests/test_legendre.py +++ b/python/libsharp/tests/test_legendre.py @@ -44,8 +44,8 @@ def test_legendre_transform(): def check_legendre_roots(n): xs, ws = ([], []) if n == 0 else p_roots(n) # from SciPy xl, wl = libsharp.legendre_roots(n) - assert_allclose(xs, xl) - assert_allclose(ws, wl) + assert_allclose(xs, xl, rtol=1e-14, atol=1e-14) + assert_allclose(ws, wl, rtol=1e-14, atol=1e-14) def test_legendre_roots(): """