From 2ffcb119c0235ee7b5c169cae65fcac44064b35a Mon Sep 17 00:00:00 2001 From: Tobias Pitters Date: Tue, 26 May 2020 21:18:46 +0200 Subject: fix symmetry test --- numpy/lib/tests/test_function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/tests/test_function_base.py') diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 9ac6e94ce..de2716bf1 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -3153,7 +3153,7 @@ class TestLerp: a=st.floats(allow_nan=False, allow_infinity=False), b=st.floats(allow_nan=False, allow_infinity=False)) def test_lerp_symmetric(self, t, a, b): - assert np.lib.function_base._lerp(a, b, t) == np.lib.function_base._lerp(b, a, t) + assert np.isclose(np.lib.function_base._lerp(a, b, t), np.lib.function_base._lerp(b, a, (1-t))) class TestMedian: -- cgit v1.2.1