Skip to content

Commit eb4a76a

Browse files
author
Dag Sverre Seljebotn
committed
Small fix to Legendre root Python tests
1 parent da3cd27 commit eb4a76a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/libsharp/tests/test_legendre.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def test_legendre_transform():
4444
def check_legendre_roots(n):
4545
xs, ws = ([], []) if n == 0 else p_roots(n) # from SciPy
4646
xl, wl = libsharp.legendre_roots(n)
47-
assert_allclose(xs, xl)
48-
assert_allclose(ws, wl)
47+
assert_allclose(xs, xl, rtol=1e-14, atol=1e-14)
48+
assert_allclose(ws, wl, rtol=1e-14, atol=1e-14)
4949

5050
def test_legendre_roots():
5151
"""

0 commit comments

Comments
 (0)