@@ -450,6 +450,7 @@ def test_sel_date_scalar(da, date_type, index):
450
450
assert_identical (result , expected )
451
451
452
452
453
+ @pytest .mark .xfail (reason = "https://github.com/pydata/xarray/issues/3751" )
453
454
@requires_cftime
454
455
@pytest .mark .parametrize (
455
456
"sel_kwargs" ,
@@ -501,14 +502,20 @@ def test_sel_date_scalar_backfill(da, date_type, index, sel_kwargs):
501
502
[
502
503
{"method" : "pad" , "tolerance" : timedelta (days = 20 )},
503
504
{"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
+ ),
505
511
],
506
512
)
507
513
def test_sel_date_scalar_tolerance_raises (da , date_type , sel_kwargs ):
508
514
with pytest .raises (KeyError ):
509
515
da .sel (time = date_type (1 , 5 , 1 ), ** sel_kwargs )
510
516
511
517
518
+ @pytest .mark .xfail (reason = "https://github.com/pydata/xarray/issues/3751" )
512
519
@requires_cftime
513
520
@pytest .mark .parametrize (
514
521
"sel_kwargs" ,
@@ -556,7 +563,12 @@ def test_sel_date_list_backfill(da, date_type, index, sel_kwargs):
556
563
[
557
564
{"method" : "pad" , "tolerance" : timedelta (days = 20 )},
558
565
{"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
+ ),
560
572
],
561
573
)
562
574
def test_sel_date_list_tolerance_raises (da , date_type , sel_kwargs ):
@@ -591,6 +603,7 @@ def range_args(date_type):
591
603
]
592
604
593
605
606
+ @pytest .mark .xfail (reason = "https://github.com/pydata/xarray/issues/3751" )
594
607
@requires_cftime
595
608
def test_indexing_in_series_getitem (series , index , scalar_args , range_args ):
596
609
for arg in scalar_args :
0 commit comments