equality used to compare floating point numbers (test_bootstrap_alternative) #20043
Labels
maintenance
Items related to regular maintenance tasks
scipy.stats
task
A straightforward change, verification or fix.
Milestone
Values calculated by the bootstrap method are tested at
scipy/scipy/stats/tests/test_resampling.py
Line 540 in 1e3e8c6
But the test uses equality to compare the actual and desired values. This inevitably fails for floating point numbers, for instance on i386 (debian build tests on scipy v1.11.1)
The same error occurs with other
test_bootstrap_alternative
methods,[percentile]
and[BCa]
. Full log at https://buildd.debian.org/status/fetch.php?pkg=scipy&arch=i386&ver=1.11.1-1exp1&stamp=1707086250&raw=0The values reported in the error log would pass with
assert_allclose
instead ofassert_equal
The text was updated successfully, but these errors were encountered: