Skip to content

Commit d212de6

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 b6c8195 commit d212de6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/window/moments/test_moments_rolling.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import copy
22
from datetime import datetime
33
import warnings
4+
import sys
5+
import platform
6+
import re
47

58
import numpy as np
69
from numpy.random import randn
@@ -637,7 +640,9 @@ def test_rolling_quantile_interpolation_options(
637640
if np.isnan(q1):
638641
assert np.isnan(q2)
639642
else:
640-
assert q1 == q2
643+
assert np.abs(q1-q2)<1e-15
644+
if not (re.match('i.?86|x86',platform.uname()[4]) and sys.maxsize<2**33):
645+
assert q1 == q2
641646

642647
def test_invalid_quantile_value(self):
643648
data = np.arange(5)

0 commit comments

Comments
 (0)