From: stevenknight Date: Thu, 14 Jan 2010 19:17:03 +0000 (+0000) Subject: Minor code cleanup, including restoring saved SCONSFLAGS correctly. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=17985d6c73561862e076122054b45f533ca6e902;p=scons.git Minor code cleanup, including restoring saved SCONSFLAGS correctly. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4621 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/QMTest/TestSConsMSVS.py b/QMTest/TestSConsMSVS.py index 5fea14ae..0f6fc6f3 100644 --- a/QMTest/TestSConsMSVS.py +++ b/QMTest/TestSConsMSVS.py @@ -658,9 +658,8 @@ print "self._msvs_versions =", str(SCons.Tool.MSCommon.query_versions()) os.environ['SCONSFLAGS'] = string.join(sconsflags) try: result = apply(TestSCons.run, (self,)+args, kw) - pass finally: - sconsflags = save_sconsflags + os.environ['SCONSFLAGS'] = save_sconsflags or '' return result # Local Variables: