|
9 | 9 | from numpy.random import rand, randint, randn
|
10 | 10 | import pytest
|
11 | 11 |
|
| 12 | +from pandas.compat import is_platform_windows |
| 13 | +from pandas.compat.numpy import np_version_under1p17 |
12 | 14 | from pandas.errors import PerformanceWarning
|
13 | 15 | import pandas.util._test_decorators as td
|
14 | 16 |
|
@@ -197,7 +199,23 @@ def test_simple_cmp_ops(self, cmp_op):
|
197 | 199 | self.check_simple_cmp_op(lhs, cmp_op, rhs)
|
198 | 200 |
|
199 | 201 | @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 | + |
201 | 219 | self.check_binary_arith_op(lhs, op, rhs)
|
202 | 220 |
|
203 | 221 | def test_modulus(self, lhs, rhs):
|
|
0 commit comments