]> 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:40:04 +0000 (19:40 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 8 Oct 2011 17:40:04 +0000 (19:40 +0200)
(found by Georg)

Tools/iobench/iobench.py

index b3bdd6a6709eebcdd1cd8ad71279b46a800f6f15..5ec6f179de73184bc81218c60a1e70e8aa46b1be 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():