summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_asarray.py
diff options
context:
space:
mode:
authorPal Barta <bartapal.hu@gmail.com>2022-08-10 11:20:50 -0400
committerPal Barta <bartapal.hu@gmail.com>2022-08-10 11:20:50 -0400
commit002df0e20f109dd001053f42bdc9a90632f536ff (patch)
tree0d3da331653853f529ef31c91a8ccfbe2b8fe52b /numpy/array_api/tests/test_asarray.py
parenta642e1f0437571be82966069484dd359732c852b (diff)
downloadnumpy-002df0e20f109dd001053f42bdc9a90632f536ff.tar.gz
TST: fix test_linear_interpolation_formula_symmetric
The lerp test compared the output of the original and the symmetric functions by using basic assertion. Double precision errors could accumulate in a way that the 2 outputs mismatch by epsilon. For more information on the precision issue, see #22073 Fix: use assert_allclose instead for float comparison.
Diffstat (limited to 'numpy/array_api/tests/test_asarray.py')
0 files changed, 0 insertions, 0 deletions