From ca8afe780ab024efb85e8e0e6b41bbe4fefb813d Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Wed, 16 Jun 2010 12:47:37 +0000 Subject: Solaris portability fix to avoid substitutions during Tool module intialization. --- test/Subst/AllowSubstExceptions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/Subst/AllowSubstExceptions.py b/test/Subst/AllowSubstExceptions.py index c49f62f..286f189 100644 --- a/test/Subst/AllowSubstExceptions.py +++ b/test/Subst/AllowSubstExceptions.py @@ -35,7 +35,11 @@ test = TestSCons.TestSCons() test.write('SConstruct', """\ import SCons.Errors -env = Environment(INDEX = [0, 1]) +# Avoid tools= initialization in both the default and local construction +# environments, so we don't get substitution exceptions from platform- +# specific Tool modules. +DefaultEnvironment(tools = []) +env = Environment(tools = [], INDEX = [0, 1]) assert env.subst('$NAME') == '' assert env.subst('${NAME}') == '' -- cgit v0.12