From: stevenknight Date: Sat, 20 Dec 2008 16:15:01 +0000 (+0000) Subject: Fix left-over deprecated use of the Options object. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=20c3a0b6e706879cc332f3dd26baa7a978de24a5;p=scons.git Fix left-over deprecated use of the Options object. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3838 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/Parallel/multiple-parents.py b/test/Parallel/multiple-parents.py index ceeb47f4..1b7a1a1d 100644 --- a/test/Parallel/multiple-parents.py +++ b/test/Parallel/multiple-parents.py @@ -55,9 +55,9 @@ test = TestSCons.TestSCons() # h) Builds that are interrupted test.write('SConstruct', """ -opts = Options() -opts.Add( BoolOption('interrupt', 'Interrupt the build.', 0 ) ) -optEnv = Environment(options=opts) +vars = Variables() +vars.Add( BoolVariable('interrupt', 'Interrupt the build.', 0 ) ) +varEnv = Environment(variables=vars) def fail_action(target = None, source = None, env = None): return 2 @@ -93,7 +93,7 @@ prev_prereq = prereq0 prev_ignore = ignore0 prev_igreq = igreq0 -if optEnv['interrupt']: +if varEnv['interrupt']: prev_level = prev_level + interrupt for i in range(1,20):