Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74472a9

Browse files
committed
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
(found by Georg)
1 parent de8c723 commit 74472a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/iobench/iobench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def make_test_source(name, size):
358358
with text_open(name, "r") as f:
359359
return f.read()
360360
run_test_family(modify_tests, "b", text_files,
361-
lambda fn: open(fn, "r+"), make_test_source)
361+
lambda fn: text_open(fn, "r+"), make_test_source)
362362

363363

364364
def prepare_files():

0 commit comments

Comments
 (0)