Skip to content

Commit 36dd70a

Browse files
kei-0021kei-0021
andauthored
STY: add strict=True to zip() in pandas/tests/series/indexing (#63882)
Co-authored-by: kei-0021 <[email protected]>
1 parent 309b2c9 commit 36dd70a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pandas/tests/series/indexing/test_get.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_get_with_default():
149149

150150
for data, index in ((d0, d1), (d1, d0)):
151151
s = Series(data, index=index)
152-
for i, d in zip(index, data):
152+
for i, d in zip(index, data, strict=True):
153153
assert s.get(i) == d
154154
assert s.get(i, d) == d
155155
assert s.get(i, "z") == d

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ exclude = [
512512
"pandas/tests/reshape/test_qcut.py" = ["B905"]
513513
"pandas/tests/scalar/period/test_asfreq.py" = ["B905"]
514514
"pandas/tests/series/accessors/test_dt_accessor.py" = ["B905"]
515-
"pandas/tests/series/indexing/test_get.py" = ["B905"]
516515
"pandas/tests/series/test_api.py" = ["B905"]
517516
"pandas/tests/series/test_constructors.py" = ["B905"]
518517
"pandas/tests/strings/conftest.py" = ["B905"]

0 commit comments

Comments
 (0)