summaryrefslogtreecommitdiff
path: root/test/Subst
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-06-16 12:47:37 +0000
committerSteven Knight <knight@baldmt.com>2010-06-16 12:47:37 +0000
commit661d2eac1aa39e9b575e0f5ba68f0aa61920cf3d (patch)
treecbd12569c36f3b788f349dd0d883dbaeafc9a4d2 /test/Subst
parentd749666e58491b82813962b4a419691a83d634f4 (diff)
downloadscons-661d2eac1aa39e9b575e0f5ba68f0aa61920cf3d.tar.gz
Solaris portability fix to avoid substitutions during Tool module intialization.
Diffstat (limited to 'test/Subst')
-rw-r--r--test/Subst/AllowSubstExceptions.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Subst/AllowSubstExceptions.py b/test/Subst/AllowSubstExceptions.py
index c49f62f4..286f189a 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}') == ''