File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -439,10 +439,11 @@ def test_hasnans_isnans(self, index_flat):
439
439
440
440
@pytest .mark .filterwarnings (r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning" )
441
441
@pytest .mark .parametrize ("na_position" , [None , "middle" ])
442
+ @pytest .mark .xfail (reason = "Sorting fails due to heterogeneous types in index (int vs str)" )
442
443
def test_sort_values_invalid_na_position (index_with_missing , na_position ):
443
444
non_na_values = [x for x in index_with_missing if pd .notna (x )]
444
445
if len ({type (x ) for x in non_na_values }) > 1 :
445
- pytest .xfail ("Sorting fails due to heterogeneous types in index (int vs str)" )
446
+ pytest .mark . xfail (reason = "Sorting fails due to heterogeneous types in index (int vs str)" )
446
447
447
448
with pytest .raises (ValueError , match = f"invalid na_position: { na_position } " ):
448
449
index_with_missing .sort_values (na_position = na_position )
You can’t perform that action at this time.
0 commit comments