Skip to content

CI/TST: Unxfail test_slice_locs_negative_step Pyarrow test #58268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions pandas/tests/indexes/object/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
NA,
is_matching_na,
)
from pandas.compat import pa_version_under16p0
import pandas.util._test_decorators as td

import pandas as pd
Expand Down Expand Up @@ -202,16 +201,7 @@ class TestSliceLocs:
(pd.IndexSlice["m":"m":-1], ""), # type: ignore[misc]
],
)
def test_slice_locs_negative_step(self, in_slice, expected, dtype, request):
if (
not pa_version_under16p0
and dtype == "string[pyarrow_numpy]"
and in_slice == slice("a", "a", -1)
):
request.applymarker(
pytest.mark.xfail(reason="https://github.com/apache/arrow/issues/40642")
)

def test_slice_locs_negative_step(self, in_slice, expected, dtype):
index = Index(list("bcdxy"), dtype=dtype)

s_start, s_stop = index.slice_locs(in_slice.start, in_slice.stop, in_slice.step)
Expand Down