From: Debian Science Team Date: Fri, 11 Oct 2024 09:18:43 +0000 (+0100) Subject: Don't fail sum test on near-cancelling inputs X-Git-Tag: archive/raspbian/2.2.3+dfsg-7+rpi1~1^2^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3a6454cee9feb8ae8e1ead9d82df487fc21cbccc;p=pandas.git Don't fail sum test on near-cancelling inputs Failed in 1.5.3+dfsg-11 after it happened to select an input that cancelled to ~1e-5 (on i386, so x87 excess precision might be involved) Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name sum_loosen_test_tolerance.patch --- diff --git a/pandas/tests/frame/test_reductions.py b/pandas/tests/frame/test_reductions.py index 66145c32..bd0e38ba 100644 --- a/pandas/tests/frame/test_reductions.py +++ b/pandas/tests/frame/test_reductions.py @@ -344,7 +344,7 @@ class TestDataFrameAnalytics: np.sum, mixed_float_frame.astype("float32"), check_dtype=False, - rtol=1e-3, + rtol=1e-3, atol=1e-3, ) assert_stat_op_calc(