Source

SCons / test / option--U.py

Diff from to

test/option--U.py

 
 test = TestSCons.TestSCons()
 
-python = TestSCons.python
+_python_ = TestSCons._python_
 
 test.subdir('sub1', 'sub2', 'sub3')
 
 test.write('SConstruct', r"""
 import SCons.Defaults
 env = Environment()
-env['BUILDERS']['B'] = Builder(action=r'%s build.py $TARGET $SOURCES', multi=1)
+env['BUILDERS']['B'] = Builder(action=r'%(_python_)s build.py $TARGET $SOURCES', multi=1)
 Default(env.B(target = 'sub1/foo.out', source = 'sub1/foo.in'))
 Export('env')
 SConscript('sub2/SConscript')
 SConscript('sub2b/SConscript')
 Default(env.B(target = 'sub2/xxx.out', source = 'xxx.in'))
 SConscript('SConscript')
-""" % python)
+""" % locals())
 
 test.write(['sub2', 'SConscript'], """
 Import('env')