Fix a missing encoding argument when opening a text file in some of iobench's subtests.

(found by Georg)
This commit is contained in:
Antoine Pitrou 2011-10-08 19:40:04 +02:00
parent de8c723ddd
commit 74472a94aa
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ def run_all_tests(options):
with text_open(name, "r") as f: with text_open(name, "r") as f:
return f.read() return f.read()
run_test_family(modify_tests, "b", text_files, run_test_family(modify_tests, "b", text_files,
lambda fn: open(fn, "r+"), make_test_source) lambda fn: text_open(fn, "r+"), make_test_source)
def prepare_files(): def prepare_files():