@@ -1945,14 +1945,9 @@ def test_str_find_negative_start():
1945
1945
1946
1946
def test_str_find_no_end ():
1947
1947
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 )
1956
1951
1957
1952
1958
1953
def test_str_find_negative_start_negative_end ():
@@ -1966,14 +1961,9 @@ def test_str_find_negative_start_negative_end():
1966
1961
def test_str_find_large_start ():
1967
1962
# GH 56791
1968
1963
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 )
1977
1967
1978
1968
1979
1969
@pytest .mark .skipif (
0 commit comments