Skip to content

Commit 59b71e3

Browse files
committed
Add strict=True to zip call in test_series_apply.py
1 parent 944c527 commit 59b71e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/apply/test_series_apply.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,9 @@ def test_apply_to_timedelta(by_row):
545545
)
546546
def test_apply_listlike_reducer(string_series, ops, names, how, kwargs):
547547
# GH 39140
548-
expected = Series({name: op(string_series) for name, op in zip(names, ops)})
548+
expected = Series(
549+
{name: op(string_series) for name, op in zip(names, ops, strict=True)}
550+
)
549551
expected.name = "series"
550552
result = getattr(string_series, how)(ops, **kwargs)
551553
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)