Skip to content

Commit 7da6613

Browse files
committed
Fixup test
1 parent 5d6305e commit 7da6613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/io/formats/test_to_csv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,9 @@ def test_to_csv_errors(self, errors, engine):
835835
raises_if_pyarrow = check_raises_if_pyarrow("errors", engine)
836836
data = ["\ud800foo"]
837837
with raises_if_pyarrow:
838-
ser = pd.Series(data, index=Index(data, dtype=object), dtype=object)
839-
with tm.ensure_clean("test.csv") as path:
840-
ser.to_csv(path, errors=errors)
838+
ser = pd.Series(data, index=Index(data, dtype=object), dtype=object)
839+
with tm.ensure_clean("test.csv") as path:
840+
ser.to_csv(path, errors=errors, engine=engine)
841841
# No use in reading back the data as it is not the same anymore
842842
# due to the error handling
843843

0 commit comments

Comments
 (0)