diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index a85a2fca8a9ff5..fc4f14882b9d7c 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -1945,14 +1945,9 @@ def test_str_find_negative_start(): def test_str_find_no_end(): ser = pd.Series(["abc", None], dtype=ArrowDtype(pa.string())) - if pa_version_under13p0: - # https://github.com/apache/arrow/issues/36311 - with pytest.raises(pa.lib.ArrowInvalid, match="Negative buffer resize"): - ser.str.find("ab", start=1) - else: - result = ser.str.find("ab", start=1) - expected = pd.Series([-1, None], dtype="int64[pyarrow]") - tm.assert_series_equal(result, expected) + result = ser.str.find("ab", start=1) + expected = pd.Series([-1, None], dtype="int64[pyarrow]") + tm.assert_series_equal(result, expected) def test_str_find_negative_start_negative_end(): @@ -1966,14 +1961,9 @@ def test_str_find_negative_start_negative_end(): def test_str_find_large_start(): # GH 56791 ser = pd.Series(["abcdefg", None], dtype=ArrowDtype(pa.string())) - if pa_version_under13p0: - # https://github.com/apache/arrow/issues/36311 - with pytest.raises(pa.lib.ArrowInvalid, match="Negative buffer resize"): - ser.str.find(sub="d", start=16) - else: - result = ser.str.find(sub="d", start=16) - expected = pd.Series([-1, None], dtype=ArrowDtype(pa.int64())) - tm.assert_series_equal(result, expected) + result = ser.str.find(sub="d", start=16) + expected = pd.Series([-1, None], dtype=ArrowDtype(pa.int64())) + tm.assert_series_equal(result, expected) @pytest.mark.skipif(