diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-08 17:41:34 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-08 17:41:34 (GMT) |
commit | 31b3763fa304038a0f1d8a0be5e4a2b41026f107 (patch) | |
tree | e77000cb36c8e942f27d2d9f93e60a276f2a30b6 /Tools/iobench | |
parent | c4a27451741419c34fc37454d2c6af2c149ea569 (diff) | |
download | cpython-31b3763fa304038a0f1d8a0be5e4a2b41026f107.zip cpython-31b3763fa304038a0f1d8a0be5e4a2b41026f107.tar.gz cpython-31b3763fa304038a0f1d8a0be5e4a2b41026f107.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/iobench')
-rw-r--r-- | Tools/iobench/iobench.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/iobench/iobench.py b/Tools/iobench/iobench.py index 92b4ffa..6211e95 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(): |