Skip to content

Commit 9a71b0b

Browse files
committed
chore: fix updated xl lib, className for pandas ExcelFile
1 parent cf0bfb7 commit 9a71b0b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

pythonwhat/converters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def get_manual_converters():
66

77
converters = {
88
"pandas.io.excel.ExcelFile": lambda x: x.io,
9+
"pandas.io.excel._base.ExcelFile": lambda x: x.io,
910
"builtins.dict_keys": lambda x: sorted(x),
1011
"builtins.dict_items": lambda x: sorted(x),
1112
"bs4.BeautifulSoup": lambda x: str(x),

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ requests~=2.26.0
1717
seaborn~=0.11.2
1818
sqlalchemy~=1.4.23
1919
xlrd~=2.0.1
20+
openpyxl~=3.0.7
2021

2122
# test-utils deps
2223
pytest~=6.2.5

tests/test_check_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_check_keys_exotic(sct):
180180

181181

182182
def test_non_dillable():
183-
# xlrd needed for Excel support
183+
# xlrd and openpyxl needed for Excel support
184184
code = "xl = pd.ExcelFile('battledeath.xlsx')"
185185
res = helper.run(
186186
{

0 commit comments

Comments
 (0)