summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-08 17:40:22 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-08 17:40:22 (GMT)
commit760531a4944f7e00cd5c024740439d5d202bafe2 (patch)
treec6a3b9da6c9ede683498675efa03b353ddf47940 /Tools
parent3c0c5f29dd0726afd91e5d79343706690459bd44 (diff)
parent74472a94aa7e779eeb696ae8f1706c01fab4634f (diff)
downloadcpython-760531a4944f7e00cd5c024740439d5d202bafe2.zip
cpython-760531a4944f7e00cd5c024740439d5d202bafe2.tar.gz
cpython-760531a4944f7e00cd5c024740439d5d202bafe2.tar.bz2
Fix a missing encoding argument when opening a text file in some of iobench's subtests.
(found by Georg)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/iobench/iobench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/iobench/iobench.py b/Tools/iobench/iobench.py
index b3bdd6a..5ec6f17 100644
--- a/Tools/iobench/iobench.py
+++ b/Tools/iobench/iobench.py
@@ -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():