summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-10-16 15:14:20 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-10-16 15:14:20 (GMT)
commitcfb94791980e931b195ec765a926a22c9da6c0c9 (patch)
tree6c7d1c1b9e02ba7d84391d6e944158ce19a86129
parent351c325f5ee49b322b625812142a8c042ffe723a (diff)
downloadSCons-cfb94791980e931b195ec765a926a22c9da6c0c9.zip
SCons-cfb94791980e931b195ec765a926a22c9da6c0c9.tar.gz
SCons-cfb94791980e931b195ec765a926a22c9da6c0c9.tar.bz2
Fix issue where test framework was printing a tuple under python 2.7 (since we removed need for print function under 2.7. This was breaking all the logic used by test framework to get the list of installed MSVS's. Switched to proper print format string
-rw-r--r--QMTest/TestSConsMSVS.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/QMTest/TestSConsMSVS.py b/QMTest/TestSConsMSVS.py
index 19ce747..1e879d9 100644
--- a/QMTest/TestSConsMSVS.py
+++ b/QMTest/TestSConsMSVS.py
@@ -1039,8 +1039,8 @@ class TestSConsMSVS(TestSCons):
input = """\
import SCons
import SCons.Tool.MSCommon
-print("self.scons_version =", repr(SCons.__%s__))
-print("self._msvs_versions =", str(SCons.Tool.MSCommon.query_versions()))
+print("self.scons_version =%%s"%%repr(SCons.__%s__))
+print("self._msvs_versions =%%s"%%str(SCons.Tool.MSCommon.query_versions()))
""" % 'version'
self.run(arguments = '-n -q -Q -f -', stdin = input)