summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/NodeTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-06-04 16:43:13 (GMT)
committerSteven Knight <knight@baldmt.com>2005-06-04 16:43:13 (GMT)
commit7a75ef62e1067b6c8af61f1656c54f5d6853432c (patch)
tree72c9af859aaaca0b032d70fa89f09488a1870035 /src/engine/SCons/Node/NodeTests.py
parent97bdb1f4e23bac6d3b3d02f855c5a25882212afb (diff)
downloadSCons-7a75ef62e1067b6c8af61f1656c54f5d6853432c.zip
SCons-7a75ef62e1067b6c8af61f1656c54f5d6853432c.tar.gz
SCons-7a75ef62e1067b6c8af61f1656c54f5d6853432c.tar.bz2
Move BuildInfo translation of signature Nodes to rel_paths into the class itself.
Diffstat (limited to 'src/engine/SCons/Node/NodeTests.py')
-rw-r--r--src/engine/SCons/Node/NodeTests.py21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/engine/SCons/Node/NodeTests.py b/src/engine/SCons/Node/NodeTests.py
index 70b9672..3be1d6b 100644
--- a/src/engine/SCons/Node/NodeTests.py
+++ b/src/engine/SCons/Node/NodeTests.py
@@ -503,24 +503,19 @@ class NodeTestCase(unittest.TestCase):
"""Test generating a build information structure
"""
node = SCons.Node.Node()
- binfo = node.gen_binfo(Calculator(666))
+ d = SCons.Node.Node()
+ i = SCons.Node.Node()
+ node.depends = [d]
+ node.implicit = [i]
+ binfo = node.gen_binfo(Calculator(1998))
assert isinstance(binfo, SCons.Node.BuildInfo), binfo
assert hasattr(binfo, 'bsources')
assert hasattr(binfo, 'bsourcesigs')
- assert hasattr(binfo, 'bdepends')
+ assert binfo.bdepends == [d]
assert hasattr(binfo, 'bdependsigs')
- assert hasattr(binfo, 'bimplicit')
+ assert binfo.bimplicit == [i]
assert hasattr(binfo, 'bimplicitsigs')
- assert binfo.bsig == 666, binfo.bsig
-
- def test_rel_path(self):
- """Test the rel_path() method
- """
- node = SCons.Node.Node()
- other = SCons.Node.Node()
- other.__str__ = lambda: "xyzzy"
- r = node.rel_path(other)
- assert r == "xyzzy", r
+ assert binfo.bsig == 5994, binfo.bsig
def test_explain(self):
"""Test explaining why a Node must be rebuilt