From 23512671871d6fb6bcea8c12f5c8d6929222fea9 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Sat, 11 Oct 2008 13:35:01 +0000 Subject: [PATCH] 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 --- test/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.26.2