summaryrefslogtreecommitdiffstats
path: root/test/YACC/YACCCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/YACC/YACCCOM.py')
-rw-r--r--test/YACC/YACCCOM.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/YACC/YACCCOM.py b/test/YACC/YACCCOM.py
index 5f7cd38..1425eb8 100644
--- a/test/YACC/YACCCOM.py
+++ b/test/YACC/YACCCOM.py
@@ -30,7 +30,7 @@ Test the ability to configure the $YACCCOM construction variable.
import TestSCons
-python = TestSCons.python
+_python_ = TestSCons._python_
test = TestSCons.TestSCons()
@@ -48,10 +48,10 @@ sys.exit(0)
test.write('SConstruct', """
env = Environment(tools=['default', 'yacc'],
- YACCCOM = r'%s myyacc.py $TARGET $SOURCES')
+ YACCCOM = r'%(_python_)s myyacc.py $TARGET $SOURCES')
env.CFile(target = 'aaa', source = 'aaa.y')
env.CFile(target = 'bbb', source = 'bbb.yacc')
-""" % python)
+""" % locals())
test.write('aaa.y', "aaa.y\n/*yacc*/\n")
test.write('bbb.yacc', "bbb.yacc\n/*yacc*/\n")