diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-04-03 21:49:56 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-04-03 21:49:56 (GMT) |
commit | f80aee089f44d50877e65f049424df212c867ff3 (patch) | |
tree | 51f60bb7f6239e6e0c5ed2cdf7c2af7163831c63 /test | |
parent | 9f917ba625b61071a4c181d98f1e9dada4dbd569 (diff) | |
download | SCons-f80aee089f44d50877e65f049424df212c867ff3.zip SCons-f80aee089f44d50877e65f049424df212c867ff3.tar.gz SCons-f80aee089f44d50877e65f049424df212c867ff3.tar.bz2 |
py2/3 mode=r/w fixes
Diffstat (limited to 'test')
-rw-r--r-- | test/QT/QTFLAGS.py | 2 | ||||
-rw-r--r-- | test/QT/source-from-ui.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/QT/QTFLAGS.py b/test/QT/QTFLAGS.py index f6aa00f..8d266ad 100644 --- a/test/QT/QTFLAGS.py +++ b/test/QT/QTFLAGS.py @@ -148,7 +148,7 @@ test.must_exist(['work1', 'mmmmocFromH.cxx'], def _flagTest(test,fileToContentsStart): for f,c in fileToContentsStart.items(): - if test.read(test.workpath('work1', f)).find(c) != 0: + if test.read(test.workpath('work1', f), mode='r').find(c) != 0: return 1 return 0 diff --git a/test/QT/source-from-ui.py b/test/QT/source-from-ui.py index b8be72e..7922717 100644 --- a/test/QT/source-from-ui.py +++ b/test/QT/source-from-ui.py @@ -124,7 +124,7 @@ test.must_not_exist(test.workpath(moc)) test.must_not_exist(test.workpath(cpp)) test.must_not_exist(test.workpath(h)) -cppContents = test.read(test.workpath('build', cpp)) +cppContents = test.read(test.workpath('build', cpp), mode='r') test.fail_test(cppContents.find('#include "aaa.ui.h"') == -1) test.run(arguments = "variant_dir=1 chdir=1 " + |