From 31b3763fa304038a0f1d8a0be5e4a2b41026f107 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 8 Oct 2011 19:41:34 +0200 Subject: Fix a missing encoding argument when opening a text file in some of iobench's subtests. (found by Georg) --- Tools/iobench/iobench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- cgit v0.12