Source

SCons / test / Environment.py

Diff from to

File test/Environment.py

 import TestSCons
 import sys
 
-python = TestSCons.python
+_python_ = TestSCons._python_
 
 test = TestSCons.TestSCons()
 
 env=Environment(BAR='#bar.in', BLAT='subdir/../blat blat')
 target = env.Command('foo.out',
                      'foo.in',
-                     r'%s build.py $SOURCE $TARGET ${File(BAR)} ${Dir(BLAT)}')
+                     r'%(_python_)s build.py $SOURCE $TARGET ${File(BAR)} ${Dir(BLAT)}')
 
 target = target[0]
 assert target == Dir('.').File('foo.out')
 e2 = env.Environment(XXX='$BAR', YYY='$BLAT')
 print e2['XXX']
 print e2['YYY']
-"""%python)
+""" % locals())
 
 test.write('build.py', """
 import sys