From: stevenknight Date: Sat, 11 Oct 2008 13:35:01 +0000 (+0000) Subject: Python 2.6 made "as" a keyword, so test the importability of the X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=23512671871d6fb6bcea8c12f5c8d6929222fea9;p=scons.git Python 2.6 made "as" a keyword, so test the importability of the 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 --- diff --git a/test/import.py b/test/import.py index 85948f9a..2766d772 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())