@@ -450,7 +450,6 @@ 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" )
454
453
@requires_cftime
455
454
def test_sel_date_distant_date (da , date_type , index ):
456
455
expected = xr .DataArray (4 ).assign_coords (time = index [3 ])
@@ -513,20 +512,14 @@ def test_sel_date_scalar_backfill(da, date_type, index, sel_kwargs):
513
512
[
514
513
{"method" : "pad" , "tolerance" : timedelta (days = 20 )},
515
514
{"method" : "backfill" , "tolerance" : timedelta (days = 20 )},
516
- pytest .param (
517
- {"method" : "nearest" , "tolerance" : timedelta (days = 20 )},
518
- marks = pytest .mark .xfail (
519
- reason = "https://github.com/pydata/xarray/issues/3751"
520
- ),
521
- ),
515
+ {"method" : "nearest" , "tolerance" : timedelta (days = 20 )},
522
516
],
523
517
)
524
518
def test_sel_date_scalar_tolerance_raises (da , date_type , sel_kwargs ):
525
519
with pytest .raises (KeyError ):
526
520
da .sel (time = date_type (1 , 5 , 1 ), ** sel_kwargs )
527
521
528
522
529
- @pytest .mark .xfail (reason = "https://github.com/pydata/xarray/issues/3751" )
530
523
@requires_cftime
531
524
@pytest .mark .parametrize (
532
525
"sel_kwargs" ,
@@ -574,12 +567,7 @@ def test_sel_date_list_backfill(da, date_type, index, sel_kwargs):
574
567
[
575
568
{"method" : "pad" , "tolerance" : timedelta (days = 20 )},
576
569
{"method" : "backfill" , "tolerance" : timedelta (days = 20 )},
577
- pytest .param (
578
- {"method" : "nearest" , "tolerance" : timedelta (days = 20 )},
579
- marks = pytest .mark .xfail (
580
- reason = "https://github.com/pydata/xarray/issues/3751"
581
- ),
582
- ),
570
+ {"method" : "nearest" , "tolerance" : timedelta (days = 20 )},
583
571
],
584
572
)
585
573
def test_sel_date_list_tolerance_raises (da , date_type , sel_kwargs ):
@@ -614,7 +602,6 @@ def range_args(date_type):
614
602
]
615
603
616
604
617
- @pytest .mark .xfail (reason = "https://github.com/pydata/xarray/issues/3751" )
618
605
@requires_cftime
619
606
def test_indexing_in_series_getitem (series , index , scalar_args , range_args ):
620
607
for arg in scalar_args :
0 commit comments