Skip to content

Commit 8a12786

Browse files
Debian Science Teamrebecca-palmer
Debian Science Team
authored andcommitted
Don't fail test for rounding difference on i386
Author: Rebecca N. Palmer <[email protected]> Bug-Debian: https://bugs.debian.org/968208 Forwarded: no Gbp-Pq: Name 968208_rounding.patch
1 parent 5d9572e commit 8a12786

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/window/test_rolling.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import sys
2+
import platform
3+
import re
4+
15
from datetime import (
26
datetime,
37
timedelta,
@@ -1708,7 +1712,9 @@ def test_rolling_quantile_interpolation_options(quantile, interpolation, data):
17081712
if np.isnan(q1):
17091713
assert np.isnan(q2)
17101714
else:
1711-
assert q1 == q2
1715+
assert np.abs(q1-q2)<1e-15
1716+
if not (re.match('i.?86|x86',platform.uname()[4]) and sys.maxsize<2**33):
1717+
assert q1 == q2
17121718

17131719

17141720
def test_invalid_quantile_value():

0 commit comments

Comments
 (0)