diff options
author | Steven Knight <knight@baldmt.com> | 2010-06-16 12:47:37 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-06-16 12:47:37 (GMT) |
commit | ca8afe780ab024efb85e8e0e6b41bbe4fefb813d (patch) | |
tree | cbd12569c36f3b788f349dd0d883dbaeafc9a4d2 | |
parent | db8180f5bd6bd90a6e9f5599e7609c0e09d0b843 (diff) | |
download | SCons-ca8afe780ab024efb85e8e0e6b41bbe4fefb813d.zip SCons-ca8afe780ab024efb85e8e0e6b41bbe4fefb813d.tar.gz SCons-ca8afe780ab024efb85e8e0e6b41bbe4fefb813d.tar.bz2 |
Solaris portability fix to avoid substitutions during Tool module intialization.
-rw-r--r-- | test/Subst/AllowSubstExceptions.py | 6 |
1 files changed, 5 insertions, 1 deletions
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}') == '' |