diff options
author | Tobias Pitters <tobias.pitters@gmail.com> | 2020-05-26 21:18:46 +0200 |
---|---|---|
committer | Tobias Pitters <tobias.pitters@gmail.com> | 2020-05-27 19:35:59 +0200 |
commit | 2ffcb119c0235ee7b5c169cae65fcac44064b35a (patch) | |
tree | 16e566cc833ed1dde5f8079db38e7bdff02075a5 /numpy/lib/tests/test_function_base.py | |
parent | 708798bf82299081b040f672173956ac8a39e877 (diff) | |
download | numpy-2ffcb119c0235ee7b5c169cae65fcac44064b35a.tar.gz |
fix symmetry test
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |