]> granicus.if.org Git - python/commitdiff
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 8 Oct 2011 17:41:34 +0000 (19:41 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 8 Oct 2011 17:41:34 +0000 (19:41 +0200)
(found by Georg)

Tools/iobench/iobench.py

index 92b4ffa180cb2a76f0c7c4c6ddfce001544eb658..6211e952b3deb5d2aeacac2741922c0139893adf 100644 (file)
@@ -358,7 +358,7 @@ def run_all_tests(options):
             with text_open(name, "r") as f:
                 return f.read()
         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():