Skip to content

Commit 1820faa

Browse files
authored
CI: xfail windows numexpr test (#37435)
* CI: xfail windows numexpr test * tighten condition
1 parent ea443de commit 1820faa

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

pandas/tests/computation/test_eval.py

+19-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
from numpy.random import rand, randint, randn
1010
import pytest
1111

12+
from pandas.compat import is_platform_windows
13+
from pandas.compat.numpy import np_version_under1p17
1214
from pandas.errors import PerformanceWarning
1315
import pandas.util._test_decorators as td
1416

@@ -197,7 +199,23 @@ def test_simple_cmp_ops(self, cmp_op):
197199
self.check_simple_cmp_op(lhs, cmp_op, rhs)
198200

199201
@pytest.mark.parametrize("op", _good_arith_ops)
200-
def test_binary_arith_ops(self, op, lhs, rhs):
202+
def test_binary_arith_ops(self, op, lhs, rhs, request):
203+
204+
if (
205+
op == "/"
206+
and isinstance(lhs, DataFrame)
207+
and isinstance(rhs, DataFrame)
208+
and not lhs.isna().any().any()
209+
and rhs.shape == (10, 5)
210+
and np_version_under1p17
211+
and is_platform_windows()
212+
and compat.PY38
213+
):
214+
mark = pytest.mark.xfail(
215+
reason="GH#37328 floating point precision on Windows builds"
216+
)
217+
request.node.add_marker(mark)
218+
201219
self.check_binary_arith_op(lhs, op, rhs)
202220

203221
def test_modulus(self, lhs, rhs):

0 commit comments

Comments
 (0)