Skip to content

Commit ba451e1

Browse files
committed
fix tests
1 parent c527ea3 commit ba451e1

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
@@ -838,9 +838,9 @@ def test_to_csv_errors(self, errors, engine):
838838
raises_if_pyarrow = check_raises_if_pyarrow("errors", engine)
839839
data = ["\ud800foo"]
840840
with raises_if_pyarrow:
841-
ser = pd.Series(data, index=Index(data))
842-
with tm.ensure_clean("test.csv") as path:
843-
ser.to_csv(path, errors=errors)
841+
ser = pd.Series(data, index=Index(data))
842+
with tm.ensure_clean("test.csv") as path:
843+
ser.to_csv(path, errors=errors, engine=engine)
844844
# No use in reading back the data as it is not the same anymore
845845
# due to the error handling
846846

0 commit comments

Comments
 (0)