Skip to content

Commit 64d515a

Browse files
TST: avoid usage of unnecessary xfail in test_datetime64 (#55860)
1 parent ed10a14 commit 64d515a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/tests/arithmetic/test_datetime64.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1079,21 +1079,17 @@ def test_dt64arr_add_dtlike_raises(self, tz_naive_fixture, box_with_array):
10791079
@pytest.mark.parametrize("freq", ["h", "D", "W", "2ME", "MS", "QE", "B", None])
10801080
@pytest.mark.parametrize("dtype", [None, "uint8"])
10811081
def test_dt64arr_addsub_intlike(
1082-
self, request, dtype, box_with_array, freq, tz_naive_fixture
1082+
self, request, dtype, index_or_series_or_array, freq, tz_naive_fixture
10831083
):
10841084
# GH#19959, GH#19123, GH#19012
10851085
tz = tz_naive_fixture
1086-
if box_with_array is pd.DataFrame:
1087-
request.applymarker(
1088-
pytest.mark.xfail(raises=ValueError, reason="Axis alignment fails")
1089-
)
10901086

10911087
if freq is None:
10921088
dti = DatetimeIndex(["NaT", "2017-04-05 06:07:08"], tz=tz)
10931089
else:
10941090
dti = date_range("2016-01-01", periods=2, freq=freq, tz=tz)
10951091

1096-
obj = box_with_array(dti)
1092+
obj = index_or_series_or_array(dti)
10971093
other = np.array([4, -1])
10981094
if dtype is not None:
10991095
other = other.astype(dtype)

0 commit comments

Comments
 (0)