Fix test infrastructure querying for installed Visual Studio versions.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 28 Nov 2009 00:41:26 +0000 (00:41 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 28 Nov 2009 00:41:26 +0000 (00:41 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4490 fdb21ef1-2011-0410-befe-b5e4ea1792b1

QMTest/TestSConsMSVS.py

index 15012d6f7762a5404e745f38c62a3a5992e63d93..5fea14ae929ce4ed11e046f64543999f84fbb90b 100644 (file)
@@ -577,9 +577,9 @@ class TestSConsMSVS(TestSCons):
             # doesn't fill it in when packaging SCons.
             input = """\
 import SCons
+import SCons.Tool.MSCommon
 print "self.scons_version =", repr(SCons.__%s__)
-env = Environment();
-print "self._msvs_versions =", str(env['MSVS']['VERSIONS'])
+print "self._msvs_versions =", str(SCons.Tool.MSCommon.query_versions())
 """ % 'version'
         
             self.run(arguments = '-n -q -Q -f -', stdin = input)