diff options
| author | Matti Picus <matti.picus@gmail.com> | 2022-08-10 21:30:40 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-10 21:30:40 +0300 |
| commit | 86a368f53ba15a610be4c6cb3a173446aef3aa80 (patch) | |
| tree | 0d3da331653853f529ef31c91a8ccfbe2b8fe52b /numpy/lib | |
| parent | a642e1f0437571be82966069484dd359732c852b (diff) | |
| parent | 002df0e20f109dd001053f42bdc9a90632f536ff (diff) | |
| download | numpy-86a368f53ba15a610be4c6cb3a173446aef3aa80.tar.gz | |
Merge pull request #22105 from palbarta/lerp_symmetric_test_issue_22073
TST: fix test_linear_interpolation_formula_symmetric
Diffstat (limited to 'numpy/lib')
| -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 8457551ca..56081b4f0 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -3579,7 +3579,7 @@ class TestLerp: # double subtraction is needed to remove the extra precision of t < 0.5 left = nfb._lerp(a, b, 1 - (1 - t)) right = nfb._lerp(b, a, 1 - t) - assert left == right + assert_allclose(left, right) def test_linear_interpolation_formula_0d_inputs(self): a = np.array(2) |
