Skip to content

Commit f4c454a

Browse files
authored
TST: Remove unnecessary test_boolean_types.xlsx (#59348)
1 parent c8bdce9 commit f4c454a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: pandas/tests/io/data/excel/test_boolean_types.xlsx

-5.16 KB
Binary file not shown.

Diff for: pandas/tests/io/excel/test_readers.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ def xfail_datetimes_with_pyxlsb(engine, request):
165165

166166
class TestReaders:
167167
@pytest.mark.parametrize("col", [[True, None, False], [True], [True, False]])
168-
def test_read_excel_type_check(self, col, datapath):
168+
def test_read_excel_type_check(self, col, tmp_excel, read_ext):
169169
# GH 58159
170+
if read_ext in (".xlsb", ".xls"):
171+
pytest.skip(f"No engine for filetype: '{read_ext}'")
170172
df = DataFrame({"bool_column": col}, dtype="boolean")
171-
f_path = datapath("io", "data", "excel", "test_boolean_types.xlsx")
172-
173-
df.to_excel(f_path, index=False)
174-
df2 = pd.read_excel(f_path, dtype={"bool_column": "boolean"}, engine="openpyxl")
173+
df.to_excel(tmp_excel, index=False)
174+
df2 = pd.read_excel(tmp_excel, dtype={"bool_column": "boolean"})
175175
tm.assert_frame_equal(df, df2)
176176

177177
def test_pass_none_type(self, datapath):

0 commit comments

Comments
 (0)