diff --git a/python/cudf/cudf/tests/test_sorting.py b/python/cudf/cudf/tests/test_sorting.py index dd545da4243..b3ecb471bb9 100644 --- a/python/cudf/cudf/tests/test_sorting.py +++ b/python/cudf/cudf/tests/test_sorting.py @@ -48,11 +48,13 @@ def test_dataframe_sort_values(nelem, dtype): @pytest.mark.parametrize("ignore_index", [True, False]) @pytest.mark.parametrize("index", ["a", "b", ["a", "b"]]) -def test_dataframe_sort_values_ignore_index(index, ignore_index): - if not PANDAS_GE_220 and isinstance(index, list) and not ignore_index: - pytest.skip( - reason="TODO: Remove this once pandas-2.2 support is added", +def test_dataframe_sort_values_ignore_index(request, index, ignore_index): + request.applymarker( + pytest.mark.xfail( + PANDAS_GE_220 and isinstance(index, list) and not ignore_index, + reason="https://github.com/pandas-dev/pandas/issues/57531", ) + ) gdf = DataFrame( {"a": [1, 3, 5, 2, 4], "b": [1, 1, 2, 2, 3], "c": [9, 7, 7, 7, 1]}