summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorTobias Pitters <31857876+CloseChoice@users.noreply.github.com>2020-05-26 21:48:07 +0200
committerTobias Pitters <tobias.pitters@gmail.com>2020-05-27 19:35:59 +0200
commit13975971df33dd511852cc4b9dcd7dceb43d9221 (patch)
tree8150a14b79343597ca04d69a2e4089505df3b08b /numpy/lib/tests/test_function_base.py
parentbf65d6bd293205dda748115db897b14d3d2ececf (diff)
downloadnumpy-13975971df33dd511852cc4b9dcd7dceb43d9221.tar.gz
Update numpy/lib/tests/test_function_base.py
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
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)