Skip to content

Commit 361c41c

Browse files
committed
add encoding
1 parent 3905f1c commit 361c41c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/io/parser/test_directory.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ def directory_data_to_file(tmp_path, directory_data):
2929

3030

3131
def test_directory_data(directory_data_to_file):
32-
print(type(directory_data_to_file.iterdir()))
3332
assert len(list(directory_data_to_file.iterdir())) == 3
3433
for file in directory_data_to_file.iterdir():
35-
with file.open() as f:
34+
with file.open(encoding="utf-8") as f:
3635
reader = csv_reader(f)
3736
header = next(reader)
3837
assert header == ["a", "b", "c"]

0 commit comments

Comments
 (0)