From f4c454a069ff3767eee999d034ec3ee577e17565 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Mon, 29 Jul 2024 09:26:54 -1000 Subject: [PATCH] TST: Remove unnecessary test_boolean_types.xlsx (#59348) --- .../tests/io/data/excel/test_boolean_types.xlsx | Bin 5279 -> 0 bytes pandas/tests/io/excel/test_readers.py | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 pandas/tests/io/data/excel/test_boolean_types.xlsx diff --git a/pandas/tests/io/data/excel/test_boolean_types.xlsx b/pandas/tests/io/data/excel/test_boolean_types.xlsx deleted file mode 100644 index 234703c32f0abe61516c3e44aa35275242d14f08..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5279 zcmZ`-2T+sS)(s#fRD<*`O-krZ1nDL8geFBqN`z1X1Q4Y6Dn$g94gvzwR1lF~l&XM$ z^xh%#s?d8U{%ze zwCR=#p2{uXIdD1 zV=GY)eLXB#wP0Wzc2F_jgJuCTM6FryIT+_bg>Ds5x|s3T{#5Re2nmvsA{i8)6(b56 z*RbXF#}W4}s}<>>Yj5TG7Hwz5q18J_!Kyw;9d35;iP!)x_NJ|N<{9>=9G)iA2syd& zFkGg6@Osnv%-C(a8Xb22bR`qX#&XrqFXU*8u?k#1kM0p9|L_mmFZUO3D3`=OAx0d4 zn%DYTD($~

?J`EE6YCX9KdqYbSAxk4ng2NT~ae+&!6Z@OE---;km8!-D>y|4ydb z=n6)64Qv2_2(y}_;0~?={1@+%geL74L1MX0ALaSu6eNToJFkW%cY;$?rjZ><|2`(? zQ}D)SWV{@43<5vaWo^l(3;k6(W;I6lfPolXL`Q+!)g9j5*mZ_*A>$#!3unU@cFrYE zU3_q=$);Y|Q5R=S32Ddkdh#R7z4Er!3*K0YPMt1<0(Z~AO2os)*uB@Kn{G!P0gEAp zmECfq)f@$bkC+ik3S!_&BI=QSh86yK94Q!@`-C4}$f%Yz$84lH)+|JK{ z^k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fiXf~(V{&N zhm0Vfk-eyX0e;-GeZ>yGh1RB25vsfK(@zQdGEk=3W(3bH*M5>x>>9f*b0Ht=fj{** zzJ;HJJ7Q6XfZqf)ULhi84k%=dTn?e|Q5rQLA_X)FRbq6Dg#takQ0;*O+?#2@I#X|nE4TEKyEw2j)!u4F_+_`TqkQxb=@^8C?$cBWO2e&`b z17{24jy{bco>(zQu;XR5RoN`K9-QAH6Z$28$~>-JX#jjjv`>5z znSOD6aBblHPf71p=l6SHB)y91cCP-nq!!N3zZ7lKMqfA;jM2UAu6un?Us9zYz-UV; zkIIPNrqAeROzkzIXFm@4dw!9gVkxoz23yT_(m?ni}Y4ne-dVlY~Ke%eLPFIhjR7nGyD` z&+2$WnDVXDqf{g<@yD`hDo7x(`X4{SNC4T>R<7}SoBF9l#>8Rl+A%&?)Q%`ztlF_< z26-u0sAnzJr3K#r=c<=@{k9l&j-J)+IYRmQ;^S7Esw8{}>HTvEV$sr$QSLdc`YU*? z?r|h8nN=^>PrFn;^69Jg^vL`F>3rtbd(|GVs=8n_rq002VFHvki7Ao<0w F{{s~i>9PO- diff --git a/pandas/tests/io/excel/test_readers.py b/pandas/tests/io/excel/test_readers.py index 0c62b7df8e2cc..bc041882b9fab 100644 --- a/pandas/tests/io/excel/test_readers.py +++ b/pandas/tests/io/excel/test_readers.py @@ -165,13 +165,13 @@ def xfail_datetimes_with_pyxlsb(engine, request): class TestReaders: @pytest.mark.parametrize("col", [[True, None, False], [True], [True, False]]) - def test_read_excel_type_check(self, col, datapath): + def test_read_excel_type_check(self, col, tmp_excel, read_ext): # GH 58159 + if read_ext in (".xlsb", ".xls"): + pytest.skip(f"No engine for filetype: '{read_ext}'") df = DataFrame({"bool_column": col}, dtype="boolean") - f_path = datapath("io", "data", "excel", "test_boolean_types.xlsx") - - df.to_excel(f_path, index=False) - df2 = pd.read_excel(f_path, dtype={"bool_column": "boolean"}, engine="openpyxl") + df.to_excel(tmp_excel, index=False) + df2 = pd.read_excel(tmp_excel, dtype={"bool_column": "boolean"}) tm.assert_frame_equal(df, df2) def test_pass_none_type(self, datapath):