Skip to content

Commit 59739c9

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 e77dfc9 commit 59739c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/window/moments/test_moments_rolling.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import copy
22
import warnings
3+
import sys
4+
import platform
5+
import re
36

47
import numpy as np
58
from numpy.random import randn
@@ -829,7 +832,9 @@ def test_rolling_quantile_interpolation_options(quantile, interpolation, data):
829832
if np.isnan(q1):
830833
assert np.isnan(q2)
831834
else:
832-
assert q1 == q2
835+
assert np.abs(q1-q2)<1e-15
836+
if not (re.match('i.?86|x86',platform.uname()[4]) and sys.maxsize<2**33):
837+
assert q1 == q2
833838

834839

835840
def test_invalid_quantile_value():

0 commit comments

Comments
 (0)