summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-05-17 22:53:45 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-05-17 22:53:45 (GMT)
commite8a01213ed84509d5c902a2c2a39680ec5da904c (patch)
tree16d71aab13432f17615b4e2f7c3123e13817c5b5 /QMTest
parentd57bd2834275a27cdc4a526bd281b099ac38577a (diff)
downloadSCons-e8a01213ed84509d5c902a2c2a39680ec5da904c.zip
SCons-e8a01213ed84509d5c902a2c2a39680ec5da904c.tar.gz
SCons-e8a01213ed84509d5c902a2c2a39680ec5da904c.tar.bz2
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 fcca470..19ce747 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)