Skip to content

Commit c269525

Browse files
Backport PR #58268 on branch 2.2.x (CI/TST: Unxfail test_slice_locs_negative_step Pyarrow test) (#58269)
Backport PR #58268: CI/TST: Unxfail test_slice_locs_negative_step Pyarrow test Co-authored-by: Matthew Roeschke <[email protected]>
1 parent d9cdd2e commit c269525

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pandas/tests/indexes/object/test_indexing.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
NA,
88
is_matching_na,
99
)
10-
from pandas.compat import pa_version_under16p0
1110
import pandas.util._test_decorators as td
1211

1312
import pandas as pd
@@ -201,16 +200,7 @@ class TestSliceLocs:
201200
(pd.IndexSlice["m":"m":-1], ""), # type: ignore[misc]
202201
],
203202
)
204-
def test_slice_locs_negative_step(self, in_slice, expected, dtype, request):
205-
if (
206-
not pa_version_under16p0
207-
and dtype == "string[pyarrow_numpy]"
208-
and in_slice == slice("a", "a", -1)
209-
):
210-
request.applymarker(
211-
pytest.mark.xfail(reason="https://github.com/apache/arrow/issues/40642")
212-
)
213-
203+
def test_slice_locs_negative_step(self, in_slice, expected, dtype):
214204
index = Index(list("bcdxy"), dtype=dtype)
215205

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

0 commit comments

Comments
 (0)