summaryrefslogtreecommitdiffstats
path: root/test/import.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-10-11 13:35:01 (GMT)
committerSteven Knight <knight@baldmt.com>2008-10-11 13:35:01 (GMT)
commitdf4831362350cc10b005daac666661e8cf0b400e (patch)
tree9859c013a14166bdd65efe1d2ce7f60c81e3d1b5 /test/import.py
parent95792a5c83ee9cc31b24beec4e49e255bcc6f0fd (diff)
downloadSCons-df4831362350cc10b005daac666661e8cf0b400e.zip
SCons-df4831362350cc10b005daac666661e8cf0b400e.tar.gz
SCons-df4831362350cc10b005daac666661e8cf0b400e.tar.bz2
Python 2.6 made "as" a keyword, so test the importability of the
Tool.as module indirectly, not with a direct import statement.
Diffstat (limited to 'test/import.py')
-rw-r--r--test/import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/import.py b/test/import.py
index 85948f9..2766d77 100644
--- a/test/import.py
+++ b/test/import.py
@@ -232,7 +232,7 @@ SCons.Tool.%(tool)s.generate(env)
failures = []
for tool in tools:
- if tool[0] in '0123456789' or '+' in tool:
+ if tool[0] in '0123456789' or '+' in tool or tool in ('as'):
test.write('SConstruct', indirect_import % locals())
else:
test.write('SConstruct', direct_import % locals())