Skip to content

Commit bb3b356

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 60dfa85 commit bb3b356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/test_reductions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def sem(x):
258258
np.sum,
259259
mixed_float_frame.astype("float32"),
260260
check_dtype=False,
261-
rtol=1e-3,
261+
rtol=1e-3, atol=1e-3,
262262
)
263263

264264
assert_stat_op_calc(

0 commit comments

Comments
 (0)