Python 1.5 fix (nested scopes).
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 14 Jan 2010 18:36:23 +0000 (18:36 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 14 Jan 2010 18:36:23 +0000 (18:36 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4618 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/ActionTests.py

index 4c2198b6fbe6b6de975d47e883d64c87b6abb312..ef91af4e9a8225055abe62a241c92a4f61fd657a 100644 (file)
@@ -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)