Skip to content
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 @@ -201,16 +200,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