We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f82f4d4 commit f20e2ccCopy full SHA for f20e2cc
pandas/tests/io/excel/test_odswriter.py
@@ -0,0 +1,17 @@
1
+import pytest
2
+
3
+import pandas._testing as tm
4
5
+from pandas.io.excel import ExcelWriter
6
7
+odf = pytest.importorskip("odf")
8
9
+pytestmark = pytest.mark.parametrize("ext", [".ods"])
10
11
12
+def test_write_append_mode_raises(ext):
13
+ msg = "Append mode is not supported with odf!"
14
15
+ with tm.ensure_clean(ext) as f:
16
+ with pytest.raises(ValueError, match=msg):
17
+ ExcelWriter(f, engine="odf", mode="a")
0 commit comments