@@ -395,19 +395,22 @@ def test_pipe_failures(any_string_dtype):
395
395
[
396
396
(2 , 5 , None , ["foo" , "bar" , np .nan , "baz" ]),
397
397
(0 , 3 , - 1 , ["" , "" , np .nan , "" ]),
398
- pytest . param (
398
+ (
399
399
None ,
400
400
None ,
401
401
- 1 ,
402
402
["owtoofaa" , "owtrabaa" , np .nan , "xuqzabaa" ],
403
- marks = pytest .mark .xfail (pa_version_under11p0 , reason = "Empty result" ),
404
403
),
405
404
(3 , 10 , 2 , ["oto" , "ato" , np .nan , "aqx" ]),
406
405
(3 , 0 , - 1 , ["ofa" , "aba" , np .nan , "aba" ]),
407
406
],
408
407
)
409
- def test_slice (start , stop , step , expected , any_string_dtype ):
408
+ def test_slice (start , stop , step , expected , any_string_dtype , request ):
410
409
ser = Series (["aafootwo" , "aabartwo" , np .nan , "aabazqux" ], dtype = any_string_dtype )
410
+ if any_string_dtype == "string[pyarrow]" and pa_version_under11p0 :
411
+ mark = pytest .mark .xfail (reason = "Empty result" )
412
+ request .applymarker (mark )
413
+
411
414
result = ser .str .slice (start , stop , step )
412
415
expected = Series (expected , dtype = any_string_dtype )
413
416
tm .assert_series_equal (result , expected )
0 commit comments