From 26408dd596365da7f47d981c182e46f28b835e45 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Fri, 9 Feb 2024 20:48:14 +0000 Subject: [PATCH] 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 --- pandas/tests/frame/test_reductions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/frame/test_reductions.py b/pandas/tests/frame/test_reductions.py index bec1fcd1..b9a7483c 100644 --- a/pandas/tests/frame/test_reductions.py +++ b/pandas/tests/frame/test_reductions.py @@ -258,7 +258,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( -- 2.30.2