Skip to content

Commit 63e7ef1

Browse files
authored
TST: Add any_string_dtype parameterization to test (pandas-dev#44938)
1 parent 1fde76f commit 63e7ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/strings/test_split_partition.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ def test_split_with_name_index():
434434
],
435435
],
436436
)
437-
def test_partition_series_more_than_one_char(method, exp):
437+
def test_partition_series_more_than_one_char(method, exp, any_string_dtype):
438438
# https://github.com/pandas-dev/pandas/issues/23558
439439
# more than one char
440-
s = Series(["a__b__c", "c__d__e", np.nan, "f__g__h", None])
440+
s = Series(["a__b__c", "c__d__e", np.nan, "f__g__h", None], dtype=any_string_dtype)
441441
result = getattr(s.str, method)("__", expand=False)
442442
expected = Series(exp)
443443
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)