Skip to content

Commit e74fe09

Browse files
committed
add local test
1 parent 3229482 commit e74fe09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def local_csv_file(tmp_path):
231231
Fixture to create a dummy CSV file for testing.
232232
"""
233233
file_path = tmp_path / "dummy.csv"
234-
with open(file_path, "w") as f:
234+
with file_path.open(mode="x", encoding="utf-8") as f:
235235
f.write("A,B,C\n1,2,3\n4,5,6\n")
236236
return file_path
237237

0 commit comments

Comments
 (0)