Skip to content

Commit f5416e3

Browse files
author
Rohan Jain
committed
inline
1 parent 0de96cb commit f5416e3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pandas/tests/extension/test_arrow.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -1976,19 +1976,18 @@ def test_str_find_large_start():
19761976
tm.assert_series_equal(result, expected)
19771977

19781978

1979-
def _get_all_substrings(string):
1980-
length = len(string) + 1
1981-
return [string[x:y] for x, y in combinations(range(length), r=2)]
1982-
1983-
19841979
@pytest.mark.xfail(
19851980
pa_version_under13p0, reason="https://github.com/apache/arrow/issues/36311"
19861981
)
19871982
def test_str_find_e2e():
1988-
string = "abcdefgh"
1983+
string = "abcaadef"
19891984
s = pd.Series([string], dtype=ArrowDtype(pa.string()))
1990-
substrings = _get_all_substrings(string) + ["", "az", "abce"]
19911985
offsets = list(range(-15, 15)) + [None]
1986+
substrings = [string[x:y] for x, y in combinations(range(len(string) + 1), r=2)] + [
1987+
"",
1988+
"az",
1989+
"abce",
1990+
]
19921991
for start in offsets:
19931992
for end in offsets:
19941993
for sub in substrings:

0 commit comments

Comments
 (0)