@@ -865,9 +865,6 @@ def test_td64arr_sub_NaT(self, box):
865
865
866
866
def test_td64arr_add_timedeltalike (self , delta , box ):
867
867
# only test adding/sub offsets as + is now numeric
868
- if box is pd .DataFrame and isinstance (delta , pd .DateOffset ):
869
- pytest .xfail (reason = "Returns object dtype instead of m8[ns]" )
870
-
871
868
rng = timedelta_range ('1 days' , '10 days' )
872
869
expected = timedelta_range ('1 days 02:00:00' , '10 days 02:00:00' ,
873
870
freq = 'D' )
@@ -879,9 +876,6 @@ def test_td64arr_add_timedeltalike(self, delta, box):
879
876
880
877
def test_td64arr_sub_timedeltalike (self , delta , box ):
881
878
# only test adding/sub offsets as - is now numeric
882
- if box is pd .DataFrame and isinstance (delta , pd .DateOffset ):
883
- pytest .xfail (reason = "Returns object dtype instead of m8[ns]" )
884
-
885
879
rng = timedelta_range ('1 days' , '10 days' )
886
880
expected = timedelta_range ('0 days 22:00:00' , '9 days 22:00:00' )
887
881
@@ -1132,9 +1126,6 @@ def test_td64arr_mul_int(self, box):
1132
1126
tm .assert_equal (result , idx )
1133
1127
1134
1128
def test_td64arr_mul_tdlike_scalar_raises (self , delta , box ):
1135
- if box is pd .DataFrame and not isinstance (delta , pd .DateOffset ):
1136
- pytest .xfail (reason = "returns m8[ns] instead of raising" )
1137
-
1138
1129
rng = timedelta_range ('1 days' , '10 days' , name = 'foo' )
1139
1130
rng = tm .box_expected (rng , box )
1140
1131
with pytest .raises (TypeError ):
0 commit comments