diff options
author | Steven Knight <knight@baldmt.com> | 2010-01-14 18:36:23 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-01-14 18:36:23 (GMT) |
commit | bb5c10bf9482f87669a94a9f93b4792f2918b920 (patch) | |
tree | f35c0efadb252f799990bfbf359bacf810b676d0 /src | |
parent | 961e4b707e76ef519ca1af2d3a0788599db6e710 (diff) | |
download | SCons-bb5c10bf9482f87669a94a9f93b4792f2918b920.zip SCons-bb5c10bf9482f87669a94a9f93b4792f2918b920.tar.gz SCons-bb5c10bf9482f87669a94a9f93b4792f2918b920.tar.bz2 |
Python 1.5 fix (nested scopes).
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/ActionTests.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/engine/SCons/ActionTests.py b/src/engine/SCons/ActionTests.py index 4c2198b..ef91af4 100644 --- a/src/engine/SCons/ActionTests.py +++ b/src/engine/SCons/ActionTests.py @@ -1505,7 +1505,9 @@ class CommandGeneratorActionTestCase(unittest.TestCase): def f_global(target, source, env, for_signature): return SCons.Action.Action(GlobalFunc) - def f_local(target, source, env, for_signature): + # TODO(1.5): + #def f_local(target, source, env, for_signature): + def f_local(target, source, env, for_signature, LocalFunc=LocalFunc): return SCons.Action.Action(LocalFunc) env = Environment(XYZ = 'foo') @@ -1521,7 +1523,9 @@ class CommandGeneratorActionTestCase(unittest.TestCase): def f_global(target, source, env, for_signature): return SCons.Action.Action(GlobalFunc, varlist=['XYZ']) - def f_local(target, source, env, for_signature): + # TODO(1.5): + #def f_local(target, source, env, for_signature): + def f_local(target, source, env, for_signature, LocalFunc=LocalFunc): return SCons.Action.Action(LocalFunc, varlist=['XYZ']) matches_foo = map(lambda x: x + "foo", func_matches) |