Skip to content

Commit 56ef4d7

Browse files
authored
REF: Enable strict=True for zip in pandas/tests/io/excel (#63307)
1 parent 7c8a40a commit 56ef4d7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/tests/io/excel/test_style.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,13 @@ def test_styler_to_excel_unstyled(engine, tmp_excel):
7373

7474
openpyxl = pytest.importorskip("openpyxl") # test loading only with openpyxl
7575
with contextlib.closing(openpyxl.load_workbook(tmp_excel)) as wb:
76-
for col1, col2 in zip(wb["dataframe"].columns, wb["unstyled"].columns):
76+
for col1, col2 in zip(
77+
wb["dataframe"].columns,
78+
wb["unstyled"].columns,
79+
strict=True,
80+
):
7781
assert len(col1) == len(col2)
78-
for cell1, cell2 in zip(col1, col2):
82+
for cell1, cell2 in zip(col1, col2, strict=True):
7983
assert cell1.value == cell2.value
8084
assert_equal_cell_styles(cell1, cell2)
8185

0 commit comments

Comments
 (0)