summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Francisco Naranjo <naranjo.manuel@gmail.com>2014-07-21 23:26:29 (GMT)
committerManuel Francisco Naranjo <naranjo.manuel@gmail.com>2014-07-21 23:26:29 (GMT)
commit23123e60138a162556cdbb54c3c347f7553342ab (patch)
tree15d5caf80c5441863cdbf2f0f6598ccf2b46e915
parent53e30bebc2a633fc95589b9dfe663483775138a5 (diff)
downloadSCons-23123e60138a162556cdbb54c3c347f7553342ab.zip
SCons-23123e60138a162556cdbb54c3c347f7553342ab.tar.gz
SCons-23123e60138a162556cdbb54c3c347f7553342ab.tar.bz2
Adding a unit-test for pull-request #150
A unit-test for pull-request #150 has been create to make sure no regressions are introduced as part of the bugfix. It is kind of salvage it just removes BUILDERS from the dict and check everything can keep going
-rw-r--r--src/engine/SCons/EnvironmentTests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py
index 5235342..b9ef3f2 100644
--- a/src/engine/SCons/EnvironmentTests.py
+++ b/src/engine/SCons/EnvironmentTests.py
@@ -1892,6 +1892,11 @@ def generate(env):
env = env.Clone(KEY_THAT_I_WANT=6, tools=[my_tool])
assert env['KEY_THAT_I_WANT'] == real_value[0], env['KEY_THAT_I_WANT']
+ # test for pull request #150
+ env = self.TestEnvironment()
+ env._dict.pop('BUILDERS')
+ assert env.has_key('BUILDERS') is False
+ env2 = env.Clone()
def test_Copy(self):
"""Test copying using the old env.Copy() method"""