Skip to content

Commit e7c297e

Browse files
Debian Science Teamrebecca-palmer
Debian Science Team
authored andcommitted
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 <[email protected]> Forwarded: no Gbp-Pq: Name sum_loosen_test_tolerance.patch
1 parent b8c9d16 commit e7c297e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/test_reductions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def sem(x):
344344
np.sum,
345345
mixed_float_frame.astype("float32"),
346346
check_dtype=False,
347-
rtol=1e-3,
347+
rtol=1e-3, atol=1e-3,
348348
)
349349

350350
assert_stat_op_calc(

0 commit comments

Comments
 (0)