Skip to content

Commit

Permalink
Backport PR pandas-dev#58268: CI/TST: Unxfail test_slice_locs_negativ…
Browse files Browse the repository at this point in the history
…e_step Pyarrow test
  • Loading branch information
mroeschke authored and meeseeksmachine committed Apr 15, 2024
1 parent d9cdd2e commit 1828b62
Showing 1 changed file with 1 addition and 11 deletions.
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

0 comments on commit 1828b62

Please sign in to comment.