Skip to content

Commit

Permalink
tests: writing XLS is no longer supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Midnighter committed Nov 11, 2023
1 parent 136fbaa commit 84277d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions tests/test_for_experimental/test_for_tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,6 @@ def test_read_tsv(table, tmpdir):
).all()


def test_read_xls(table, tmpdir):
filename = str(tmpdir.mkdir("data").join("table.xls"))
table.to_excel(filename, index=False, engine="xlwt")
df = read_tabular(filename)
assert (df["integer"] == table["integer"]).all()
assert isclose(df["numeric"], table["numeric"]).all()
assert (df["comments"].isnull() == table["comments"].isnull()).all()
assert (
df.loc[df["comments"].notnull(), "comments"]
== table.loc[table["comments"].notnull(), "comments"]
).all()


def test_read_xlsx(table, tmpdir):
filename = str(tmpdir.mkdir("data").join("table.xlsx"))
table.to_excel(filename, index=False, engine="openpyxl")
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ deps =
pytest-cov
pytest-xdist
xlrd
xlwt
commands =
pytest --cov=memote --cov-report=term {posargs}

Expand Down

0 comments on commit 84277d2

Please sign in to comment.