diff --git a/pandas/tests/frame/indexing/test_where.py b/pandas/tests/frame/indexing/test_where.py index 8c0efbd987213..b3c087e8c99fc 100644 --- a/pandas/tests/frame/indexing/test_where.py +++ b/pandas/tests/frame/indexing/test_where.py @@ -18,7 +18,7 @@ isna, ) import pandas._testing as tm -from pandas._testing._hypothesis import OPTIONAL_ONE_OF_ALL +from pandas._testing._hypothesis import OPTIONAL_ONE_OF_ALL, DATETIME_JAN_1_1900_OPTIONAL_TZ @pytest.fixture(params=["default", "float_string", "mixed_float", "mixed_int"]) @@ -1019,7 +1019,7 @@ def test_where_producing_ea_cond_for_np_dtype(): tm.assert_frame_equal(result, expected) -@pytest.mark.parametrize("replacement", [0.001, True, "snake"]) +@pytest.mark.parametrize("replacement", [0.001, True, "snake", DATETIME_JAN_1_1900_OPTIONAL_TZ]) def test_where_int_overflow(replacement): # GH 31687 df = DataFrame([[1.0, 2e19, "nine"],[np.nan, 0.1, None]])