Python 2.6 made "as" a keyword, so test the importability of the
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 11 Oct 2008 13:35:01 +0000 (13:35 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 11 Oct 2008 13:35:01 +0000 (13:35 +0000)
Tool.as module indirectly, not with a direct import statement.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3673 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/import.py

index 85948f9ae7ac26aa607232eee4a5988acccf28f3..2766d772d91929dcb46a1ff438bec36d407fdef3 100644 (file)
@@ -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())