diff options
author | Steven Knight <knight@baldmt.com> | 2002-03-16 04:38:43 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-03-16 04:38:43 (GMT) |
commit | 0bfa6712f6b0ba40f7df806ec35a40fa056f026f (patch) | |
tree | 821e70780eb384562d222a2e8cbfe8f4e78a430d /src/engine/SCons/ActionTests.py | |
parent | d274d685b3fae62354a7c3deb0622e2edd81b0c7 (diff) | |
download | SCons-0bfa6712f6b0ba40f7df806ec35a40fa056f026f.zip SCons-0bfa6712f6b0ba40f7df806ec35a40fa056f026f.tar.gz SCons-0bfa6712f6b0ba40f7df806ec35a40fa056f026f.tar.bz2 |
Make FunctionAction arguments be Nodes, not strings. (Charles Crain)
Diffstat (limited to 'src/engine/SCons/ActionTests.py')
-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 592fa82..8b417a8 100644 --- a/src/engine/SCons/ActionTests.py +++ b/src/engine/SCons/ActionTests.py @@ -203,12 +203,16 @@ class FunctionActionTestCase(unittest.TestCase): """Test executing a function Action """ self.inc = 0 - def f(s): + def f(s, target, source): s.inc = s.inc + 1 + s.target = target + s.source=source return 0 a = SCons.Action.FunctionAction(f) - a.execute(s = self) + a.execute(s = self, target=1, source=2) assert self.inc == 1, self.inc + assert self.source == [2], self.source + assert self.target == [1], self.target def test_get_contents(self): """Test fetching the contents of a function Action |