1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: Don't fail test for rounding difference on i386
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/968208
Forwarded: no
--- a/pandas/tests/window/test_rolling.py
+++ b/pandas/tests/window/test_rolling.py
@@ -1,3 +1,7 @@
+import sys
+import platform
+import re
+
from datetime import (
datetime,
timedelta,
@@ -1708,7 +1712,9 @@ def test_rolling_quantile_interpolation_
if np.isnan(q1):
assert np.isnan(q2)
else:
- assert q1 == q2
+ assert np.abs(q1-q2)<1e-15
+ if not (re.match('i.?86|x86',platform.uname()[4]) and sys.maxsize<2**33):
+ assert q1 == q2
def test_invalid_quantile_value():
|