From 0d2f97cc08c78c8e85d9a5e3098477b6b5b0f8e9 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Tue, 14 Mar 2017 00:33:47 -0700 Subject: Use mode='r' to fix errors on Python 3 --- test/option-j.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/option-j.py b/test/option-j.py index acd97f8..3dbedc0 100644 --- a/test/option-j.py +++ b/test/option-j.py @@ -91,10 +91,10 @@ def RunTest(args, extra): test.run(arguments = args) - str = test.read("f1") + str = test.read("f1", mode='r') start1,finish1 = list(map(float, str.split("\n"))) - str = test.read("f2") + str = test.read("f2", mode='r') start2,finish2 = list(map(float, str.split("\n"))) return start2, finish1 @@ -148,10 +148,10 @@ if sys.platform != 'win32': \tignoring -j or num_jobs option.""" test.must_contain_all_lines(test.stderr(), [warn]) - str = test.read("f1") + str = test.read("f1", mode='r') start1,finish1 = list(map(float, str.split("\n"))) - str = test.read("f2") + str = test.read("f2", mode='r') start2,finish2 = list(map(float, str.split("\n"))) test.fail_test(start2 < finish1) -- cgit v0.12