summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 8ef72ea21..96e3135ef 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -3153,6 +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):
+ # double subtraction is needed to remove the extra precision that t < 0.5 has
assert np.lib.function_base._lerp(a, b, 1 - (1 - t)) == np.lib.function_base._lerp(b, a, 1 - t)