Skip to content

Commit 965d99a

Browse files
committed
revert
1 parent 1b3b3e9 commit 965d99a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

pandas/tests/scalar/timedelta/test_arithmetic.py

+15-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pytest
99

1010
import pandas as pd
11-
from pandas import NaT, Timedelta, Timestamp, offsets
11+
from pandas import NaT, Timedelta, Timestamp, _is_numpy_dev, compat, offsets
1212
import pandas._testing as tm
1313
from pandas.core import ops
1414

@@ -416,7 +416,20 @@ def test_td_div_numeric_scalar(self):
416416
assert result == Timedelta(days=2)
417417

418418
@pytest.mark.parametrize(
419-
"nan", [np.nan, np.float64("NaN"), float("nan")],
419+
"nan",
420+
[
421+
np.nan,
422+
pytest.param(
423+
np.float64("NaN"),
424+
marks=pytest.mark.xfail(
425+
# Works on numpy dev only in python 3.9
426+
_is_numpy_dev and not compat.PY39,
427+
raises=RuntimeWarning,
428+
reason="https://github.com/pandas-dev/pandas/issues/31992",
429+
),
430+
),
431+
float("nan"),
432+
],
420433
)
421434
def test_td_div_nan(self, nan):
422435
# np.float64('NaN') has a 'dtype' attr, avoid treating as array

0 commit comments

Comments
 (0)