Skip to content

Commit d616d60

Browse files
committed
added datetime as a replacement case
1 parent c243b44 commit d616d60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/frame/indexing/test_where.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
isna,
1919
)
2020
import pandas._testing as tm
21-
from pandas._testing._hypothesis import OPTIONAL_ONE_OF_ALL
21+
from pandas._testing._hypothesis import OPTIONAL_ONE_OF_ALL, DATETIME_JAN_1_1900_OPTIONAL_TZ
2222

2323

2424
@pytest.fixture(params=["default", "float_string", "mixed_float", "mixed_int"])
@@ -1019,7 +1019,7 @@ def test_where_producing_ea_cond_for_np_dtype():
10191019
tm.assert_frame_equal(result, expected)
10201020

10211021

1022-
@pytest.mark.parametrize("replacement", [0.001, True, "snake"])
1022+
@pytest.mark.parametrize("replacement", [0.001, True, "snake", DATETIME_JAN_1_1900_OPTIONAL_TZ])
10231023
def test_where_int_overflow(replacement):
10241024
# GH 31687
10251025
df = DataFrame([[1.0, 2e19, "nine"],[np.nan, 0.1, None]])

0 commit comments

Comments
 (0)