From da27fdb56845de43d69ced09980c2a0a6ba9aa23 Mon Sep 17 00:00:00 2001 From: Raj Aryan Date: Tue, 9 Dec 2025 16:54:22 +0530 Subject: [PATCH] REF: Enable strict=True for zip in pandas/tests/io/excel --- pandas/tests/io/excel/test_style.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pandas/tests/io/excel/test_style.py b/pandas/tests/io/excel/test_style.py index 12f14589365ff..5afa2cae6a56c 100644 --- a/pandas/tests/io/excel/test_style.py +++ b/pandas/tests/io/excel/test_style.py @@ -73,9 +73,13 @@ def test_styler_to_excel_unstyled(engine, tmp_excel): openpyxl = pytest.importorskip("openpyxl") # test loading only with openpyxl with contextlib.closing(openpyxl.load_workbook(tmp_excel)) as wb: - for col1, col2 in zip(wb["dataframe"].columns, wb["unstyled"].columns): + for col1, col2 in zip( + wb["dataframe"].columns, + wb["unstyled"].columns, + strict=True, + ): assert len(col1) == len(col2) - for cell1, cell2 in zip(col1, col2): + for cell1, cell2 in zip(col1, col2, strict=True): assert cell1.value == cell2.value assert_equal_cell_styles(cell1, cell2)