@@ -395,19 +395,22 @@ def test_pipe_failures(any_string_dtype):
395395 [
396396 (2 , 5 , None , ["foo" , "bar" , np .nan , "baz" ]),
397397 (0 , 3 , - 1 , ["" , "" , np .nan , "" ]),
398- pytest . param (
398+ (
399399 None ,
400400 None ,
401401 - 1 ,
402402 ["owtoofaa" , "owtrabaa" , np .nan , "xuqzabaa" ],
403- marks = pytest .mark .xfail (pa_version_under11p0 , reason = "Empty result" ),
404403 ),
405404 (3 , 10 , 2 , ["oto" , "ato" , np .nan , "aqx" ]),
406405 (3 , 0 , - 1 , ["ofa" , "aba" , np .nan , "aba" ]),
407406 ],
408407)
409- def test_slice (start , stop , step , expected , any_string_dtype ):
408+ def test_slice (start , stop , step , expected , any_string_dtype , request ):
410409 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+
411414 result = ser .str .slice (start , stop , step )
412415 expected = Series (expected , dtype = any_string_dtype )
413416 tm .assert_series_equal (result , expected )
0 commit comments