@@ -414,8 +414,7 @@ def test_dti_cmp_datetimelike(self, other, tz_naive_fixture):
414414 dti = date_range ("2016-01-01" , periods = 2 , tz = tz )
415415 if tz is not None :
416416 if isinstance (other , np .datetime64 ):
417- # no tzaware version available
418- return
417+ pytest .skip ("no tzaware version available" )
419418 other = localize_pydatetime (other , dti .tzinfo )
420419
421420 result = dti == other
@@ -1080,13 +1079,14 @@ def test_dt64arr_add_dtlike_raises(self, tz_naive_fixture, box_with_array):
10801079 @pytest .mark .parametrize ("freq" , ["H" , "D" , "W" , "M" , "MS" , "Q" , "B" , None ])
10811080 @pytest .mark .parametrize ("dtype" , [None , "uint8" ])
10821081 def test_dt64arr_addsub_intlike (
1083- self , dtype , box_with_array , freq , tz_naive_fixture
1082+ self , request , dtype , box_with_array , freq , tz_naive_fixture
10841083 ):
10851084 # GH#19959, GH#19123, GH#19012
10861085 tz = tz_naive_fixture
10871086 if box_with_array is pd .DataFrame :
1088- # alignment headaches
1089- return
1087+ request .node .add_marker (
1088+ pytest .mark .xfail (raises = ValueError , reason = "Axis alignment fails" )
1089+ )
10901090
10911091 if freq is None :
10921092 dti = DatetimeIndex (["NaT" , "2017-04-05 06:07:08" ], tz = tz )
0 commit comments