summaryrefslogtreecommitdiff
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-05-17 15:53:45 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2017-05-17 15:53:45 -0700
commitb88f6a622d39814bd1acfc822ad8877cd622bdca (patch)
tree16d71aab13432f17615b4e2f7c3123e13817c5b5 /QMTest
parentf889175e8e829039511482c0afdb7c38e22e141e (diff)
downloadscons-b88f6a622d39814bd1acfc822ad8877cd622bdca.tar.gz
PY2/3 mode=r to fix MSVS test
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSConsMSVS.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/QMTest/TestSConsMSVS.py b/QMTest/TestSConsMSVS.py
index fcca4701..19ce7474 100644
--- a/QMTest/TestSConsMSVS.py
+++ b/QMTest/TestSConsMSVS.py
@@ -1056,7 +1056,7 @@ print("self._msvs_versions =", str(SCons.Tool.MSCommon.query_versions()))
enginepath = repr(os.path.join(self._cwd, '..', 'engine'))
replace = 'sys.path = [ %s, join(sys' % enginepath
- contents = self.read(fname)
+ contents = self.read(fname, mode='r')
contents = contents.replace(orig, replace)
self.write(fname, contents)