Skip to content

Commit 2f85577

Browse files
Debian Science Teamrebecca-palmer
authored andcommitted
Mark tests that need openpyxl
(These do the usual loop through engine/read_ext but actually use .xlsx every time) Author: Rebecca N. Palmer <[email protected]> Forwarded: no Gbp-Pq: Name allow_no_openpyxl.patch
1 parent d388f4b commit 2f85577

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/io/excel/test_readers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,12 +1671,14 @@ def test_excel_read_binary_via_read_excel(self, read_ext, engine):
16711671
expected = pd.read_excel("test1" + read_ext, engine=engine)
16721672
tm.assert_frame_equal(result, expected)
16731673

1674+
@td.skip_if_no("openpyxl")
16741675
def test_read_excel_header_index_out_of_range(self, engine):
16751676
# GH#43143
16761677
with open("df_header_oob.xlsx", "rb") as f:
16771678
with pytest.raises(ValueError, match="exceeds maximum"):
16781679
pd.read_excel(f, header=[0, 1])
16791680

1681+
@td.skip_if_no("openpyxl")
16801682
@pytest.mark.parametrize("filename", ["df_empty.xlsx", "df_equals.xlsx"])
16811683
def test_header_with_index_col(self, filename):
16821684
# GH 33476

0 commit comments

Comments
 (0)