|
6 | 6 | import numpy as np
|
7 | 7 | import pytest
|
8 | 8 |
|
9 |
| -from pandas.compat import pa_version_under11p0 |
10 |
| - |
11 | 9 | from pandas import (
|
12 | 10 | DataFrame,
|
13 | 11 | Index,
|
@@ -395,22 +393,13 @@ def test_pipe_failures(any_string_dtype):
|
395 | 393 | [
|
396 | 394 | (2, 5, None, ["foo", "bar", np.nan, "baz"]),
|
397 | 395 | (0, 3, -1, ["", "", np.nan, ""]),
|
398 |
| - ( |
399 |
| - None, |
400 |
| - None, |
401 |
| - -1, |
402 |
| - ["owtoofaa", "owtrabaa", np.nan, "xuqzabaa"], |
403 |
| - ), |
| 396 | + (None, None, -1, ["owtoofaa", "owtrabaa", np.nan, "xuqzabaa"]), |
404 | 397 | (3, 10, 2, ["oto", "ato", np.nan, "aqx"]),
|
405 | 398 | (3, 0, -1, ["ofa", "aba", np.nan, "aba"]),
|
406 | 399 | ],
|
407 | 400 | )
|
408 |
| -def test_slice(start, stop, step, expected, any_string_dtype, request): |
| 401 | +def test_slice(start, stop, step, expected, any_string_dtype): |
409 | 402 | 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 |
| - |
414 | 403 | result = ser.str.slice(start, stop, step)
|
415 | 404 | expected = Series(expected, dtype=any_string_dtype)
|
416 | 405 | tm.assert_series_equal(result, expected)
|
|
0 commit comments