|
16 | 16 | import numpy as np
|
17 | 17 | import pytest
|
18 | 18 |
|
| 19 | +from pandas.compat import is_numpy_dev |
| 20 | + |
19 | 21 | import pandas as pd
|
20 | 22 | import pandas._testing as tm
|
21 | 23 | from pandas.core.arrays.boolean import BooleanDtype
|
@@ -140,6 +142,26 @@ def _check_op(self, obj, op, other, op_name, exc=NotImplementedError):
|
140 | 142 | with pytest.raises(exc):
|
141 | 143 | op(obj, other)
|
142 | 144 |
|
| 145 | + def test_arith_series_with_scalar(self, data, all_arithmetic_operators): |
| 146 | + if "floordiv" in all_arithmetic_operators and is_numpy_dev: |
| 147 | + pytest.skip("NumpyDev behavior GH#40874") |
| 148 | + super().test_arith_series_with_scalar(data, all_arithmetic_operators) |
| 149 | + |
| 150 | + def test_arith_frame_with_scalar(self, data, all_arithmetic_operators): |
| 151 | + if "floordiv" in all_arithmetic_operators and is_numpy_dev: |
| 152 | + pytest.skip("NumpyDev behavior GH#40874") |
| 153 | + super().test_arith_frame_with_scalar(data, all_arithmetic_operators) |
| 154 | + |
| 155 | + def test_arith_series_with_array(self, data, all_arithmetic_operators): |
| 156 | + if "floordiv" in all_arithmetic_operators and is_numpy_dev: |
| 157 | + pytest.skip("NumpyDev behavior GH#40874") |
| 158 | + super().test_arith_series_with_scalar(data, all_arithmetic_operators) |
| 159 | + |
| 160 | + def test_divmod_series_array(self, data, data_for_twos): |
| 161 | + if is_numpy_dev: |
| 162 | + pytest.skip("NumpyDev behavior GH#40874") |
| 163 | + super().test_divmod_series_array(data, data_for_twos) |
| 164 | + |
143 | 165 | def _check_divmod_op(self, s, op, other, exc=None):
|
144 | 166 | # override to not raise an error
|
145 | 167 | super()._check_divmod_op(s, op, other, None)
|
|
0 commit comments