Skip to content

Commit e76155e

Browse files
committed
TST: un-xfail
1 parent 7b6189f commit e76155e

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

pandas/tests/extension/test_arrow.py

+6-16
Original file line numberDiff line numberDiff line change
@@ -1945,14 +1945,9 @@ def test_str_find_negative_start():
19451945

19461946
def test_str_find_no_end():
19471947
ser = pd.Series(["abc", None], dtype=ArrowDtype(pa.string()))
1948-
if pa_version_under13p0:
1949-
# https://github.com/apache/arrow/issues/36311
1950-
with pytest.raises(pa.lib.ArrowInvalid, match="Negative buffer resize"):
1951-
ser.str.find("ab", start=1)
1952-
else:
1953-
result = ser.str.find("ab", start=1)
1954-
expected = pd.Series([-1, None], dtype="int64[pyarrow]")
1955-
tm.assert_series_equal(result, expected)
1948+
result = ser.str.find("ab", start=1)
1949+
expected = pd.Series([-1, None], dtype="int64[pyarrow]")
1950+
tm.assert_series_equal(result, expected)
19561951

19571952

19581953
def test_str_find_negative_start_negative_end():
@@ -1966,14 +1961,9 @@ def test_str_find_negative_start_negative_end():
19661961
def test_str_find_large_start():
19671962
# GH 56791
19681963
ser = pd.Series(["abcdefg", None], dtype=ArrowDtype(pa.string()))
1969-
if pa_version_under13p0:
1970-
# https://github.com/apache/arrow/issues/36311
1971-
with pytest.raises(pa.lib.ArrowInvalid, match="Negative buffer resize"):
1972-
ser.str.find(sub="d", start=16)
1973-
else:
1974-
result = ser.str.find(sub="d", start=16)
1975-
expected = pd.Series([-1, None], dtype=ArrowDtype(pa.int64()))
1976-
tm.assert_series_equal(result, expected)
1964+
result = ser.str.find(sub="d", start=16)
1965+
expected = pd.Series([-1, None], dtype=ArrowDtype(pa.int64()))
1966+
tm.assert_series_equal(result, expected)
19771967

19781968

19791969
@pytest.mark.skipif(

0 commit comments

Comments
 (0)