Merged revisions 1582-1665 via svnmerge from
[scons.git] / test / CXX / CXXFILESUFFIX.py
index 8f4c4fa16b407477ecdc86bafef4f56a104ccea1..62e8cc10b8f99bb2d8db9d51db2dfecafed75d39 100644 (file)
@@ -30,7 +30,7 @@ import string
 import sys
 import TestSCons
 
-python = TestSCons.python
+_python_ = TestSCons._python_
 
 test = TestSCons.TestSCons()
 
@@ -46,10 +46,10 @@ sys.exit(0)
 """)
 
 test.write('SConstruct', """
-env = Environment(LEX = r'%s mylex.py', tools = ['lex'])
+env = Environment(LEX = r'%(_python_)s mylex.py', tools = ['lex'])
 env.CXXFile(target = 'foo', source = 'foo.ll')
 env.Copy(CXXFILESUFFIX = '.xyz').CXXFile(target = 'bar', source = 'bar.ll')
-""" % python)
+""" % locals())
 
 input = r"""
 int