summaryrefslogtreecommitdiffstats
path: root/test/YACC/YACCHXXFILESUFFIX.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/YACC/YACCHXXFILESUFFIX.py')
-rw-r--r--test/YACC/YACCHXXFILESUFFIX.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/YACC/YACCHXXFILESUFFIX.py b/test/YACC/YACCHXXFILESUFFIX.py
index b564d5e..182f08b 100644
--- a/test/YACC/YACCHXXFILESUFFIX.py
+++ b/test/YACC/YACCHXXFILESUFFIX.py
@@ -31,7 +31,7 @@ utility that writes to an odd
import TestSCons
-python = TestSCons.python
+_python_ = TestSCons._python_
test = TestSCons.TestSCons()
@@ -58,11 +58,11 @@ sys.exit(0)
test.write('SConstruct', """
env = Environment(tools=['default', 'yacc'],
- YACC = r'%s myyacc.py',
+ YACC = r'%(_python_)s myyacc.py',
YACCFLAGS = '-d',
YACCHXXFILESUFFIX = '.hxxsuffix')
env.CXXFile(target = 'aaa', source = 'aaa.yy')
-""" % python)
+""" % locals())
test.write('aaa.yy', "aaa.yy\n/*yacc*/\n")