Skip to content

Commit babdf29

Browse files
committed
Fix test
1 parent d864912 commit babdf29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/io/excel/test_writers.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1385,12 +1385,14 @@ def test_to_excel_empty_frame(self, engine, ext):
13851385
expected = DataFrame()
13861386
tm.assert_frame_equal(result, expected)
13871387

1388-
def test_to_excel_raising_warning_when_cell_character_exceed_limit(self, path):
1388+
def test_to_excel_raising_warning_when_cell_character_exceed_limit(
1389+
self, path, engine
1390+
):
13891391
# GH#56954
13901392
df = DataFrame({"A": ["a" * 32768]})
13911393
msg = "String value too long, truncated to 32767 characters"
13921394
with tm.assert_produces_warning(UserWarning, match=msg):
1393-
df.to_excel(path)
1395+
df.to_excel(path, engine=engine)
13941396

13951397

13961398
class TestExcelWriterEngineTests:

0 commit comments

Comments
 (0)