Skip to content

Commit d215917

Browse files
Debian Science TeamJochen Sprickerhof
Debian Science Team
authored and
Jochen Sprickerhof
committed
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 bacf6b4 commit d215917

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/window/moments/test_moments_rolling.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import sys
2+
import platform
3+
import re
4+
15
import numpy as np
26
import pytest
37

@@ -585,7 +589,9 @@ def test_rolling_quantile_interpolation_options(quantile, interpolation, data):
585589
if np.isnan(q1):
586590
assert np.isnan(q2)
587591
else:
588-
assert q1 == q2
592+
assert np.abs(q1-q2)<1e-15
593+
if not (re.match('i.?86|x86',platform.uname()[4]) and sys.maxsize<2**33):
594+
assert q1 == q2
589595

590596

591597
def test_invalid_quantile_value():

0 commit comments

Comments
 (0)