@@ -450,6 +450,7 @@ def test_sel_date_scalar(da, date_type, index):
450450 assert_identical (result , expected )
451451
452452
453+ @pytest .mark .xfail (reason = "https://github.com/pydata/xarray/issues/3751" )
453454@requires_cftime
454455@pytest .mark .parametrize (
455456 "sel_kwargs" ,
@@ -501,14 +502,20 @@ def test_sel_date_scalar_backfill(da, date_type, index, sel_kwargs):
501502 [
502503 {"method" : "pad" , "tolerance" : timedelta (days = 20 )},
503504 {"method" : "backfill" , "tolerance" : timedelta (days = 20 )},
504- {"method" : "nearest" , "tolerance" : timedelta (days = 20 )},
505+ pytest .param (
506+ {"method" : "nearest" , "tolerance" : timedelta (days = 20 )},
507+ marks = pytest .mark .xfail (
508+ reason = "https://github.com/pydata/xarray/issues/3751"
509+ ),
510+ ),
505511 ],
506512)
507513def test_sel_date_scalar_tolerance_raises (da , date_type , sel_kwargs ):
508514 with pytest .raises (KeyError ):
509515 da .sel (time = date_type (1 , 5 , 1 ), ** sel_kwargs )
510516
511517
518+ @pytest .mark .xfail (reason = "https://github.com/pydata/xarray/issues/3751" )
512519@requires_cftime
513520@pytest .mark .parametrize (
514521 "sel_kwargs" ,
@@ -556,7 +563,12 @@ def test_sel_date_list_backfill(da, date_type, index, sel_kwargs):
556563 [
557564 {"method" : "pad" , "tolerance" : timedelta (days = 20 )},
558565 {"method" : "backfill" , "tolerance" : timedelta (days = 20 )},
559- {"method" : "nearest" , "tolerance" : timedelta (days = 20 )},
566+ pytest .param (
567+ {"method" : "nearest" , "tolerance" : timedelta (days = 20 )},
568+ marks = pytest .mark .xfail (
569+ reason = "https://github.com/pydata/xarray/issues/3751"
570+ ),
571+ ),
560572 ],
561573)
562574def test_sel_date_list_tolerance_raises (da , date_type , sel_kwargs ):
@@ -591,6 +603,7 @@ def range_args(date_type):
591603 ]
592604
593605
606+ @pytest .mark .xfail (reason = "https://github.com/pydata/xarray/issues/3751" )
594607@requires_cftime
595608def test_indexing_in_series_getitem (series , index , scalar_args , range_args ):
596609 for arg in scalar_args :
0 commit comments