diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-14 07:33:47 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-14 07:33:47 (GMT) |
commit | 0d2f97cc08c78c8e85d9a5e3098477b6b5b0f8e9 (patch) | |
tree | 182e8fbf6acb57e46168a34c8e6e89b422b991cd /test/option-j.py | |
parent | af1fb178b53c2f1eb80ed8d8554d609249a3dbe6 (diff) | |
download | SCons-0d2f97cc08c78c8e85d9a5e3098477b6b5b0f8e9.zip SCons-0d2f97cc08c78c8e85d9a5e3098477b6b5b0f8e9.tar.gz SCons-0d2f97cc08c78c8e85d9a5e3098477b6b5b0f8e9.tar.bz2 |
Use mode='r' to fix errors on Python 3
Diffstat (limited to 'test/option-j.py')
-rw-r--r-- | test/option-j.py | 8 |
1 files 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) |