summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/NodeTests.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-03-29 05:50:15 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-03-29 05:50:15 (GMT)
commit7adebb06bb6055345cc584377159d8052ea39e1b (patch)
treed0ca5f58b87d964927a1db7f4fe8a602f8405d23 /src/engine/SCons/Node/NodeTests.py
parent59ed0a109bf5add2efcef459080837b11066c6fb (diff)
downloadSCons-7adebb06bb6055345cc584377159d8052ea39e1b.zip
SCons-7adebb06bb6055345cc584377159d8052ea39e1b.tar.gz
SCons-7adebb06bb6055345cc584377159d8052ea39e1b.tar.bz2
http://scons.tigris.org/issues/show_bug.cgi?id=2345
Accumulated small fixers: renames, next, zip, and intern. Files that were modified or added while developing on branches/pending didn't have the fixers previously applied. This patchset picks up those.
Diffstat (limited to 'src/engine/SCons/Node/NodeTests.py')
-rw-r--r--src/engine/SCons/Node/NodeTests.py38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/engine/SCons/Node/NodeTests.py b/src/engine/SCons/Node/NodeTests.py
index 6b76e9a..9c5973c 100644
--- a/src/engine/SCons/Node/NodeTests.py
+++ b/src/engine/SCons/Node/NodeTests.py
@@ -1101,22 +1101,22 @@ class NodeTestCase(unittest.TestCase):
nw = SCons.Node.Walker(n1)
assert not nw.is_done()
- assert nw.next().name == "n1"
+ assert nw.get_next().name == "n1"
assert nw.is_done()
- assert nw.next() is None
+ assert nw.get_next() is None
n2 = MyNode("n2")
n3 = MyNode("n3")
n1.add_source([n2, n3])
nw = SCons.Node.Walker(n1)
- n = nw.next()
+ n = nw.get_next()
assert n.name == "n2", n.name
- n = nw.next()
+ n = nw.get_next()
assert n.name == "n3", n.name
- n = nw.next()
+ n = nw.get_next()
assert n.name == "n1", n.name
- n = nw.next()
+ n = nw.get_next()
assert n is None, n
n4 = MyNode("n4")
@@ -1127,17 +1127,17 @@ class NodeTestCase(unittest.TestCase):
n3.add_dependency([n6, n7])
nw = SCons.Node.Walker(n1)
- assert nw.next().name == "n4"
- assert nw.next().name == "n5"
+ assert nw.get_next().name == "n4"
+ assert nw.get_next().name == "n5"
assert n2 in nw.history
- assert nw.next().name == "n2"
- assert nw.next().name == "n6"
- assert nw.next().name == "n7"
+ assert nw.get_next().name == "n2"
+ assert nw.get_next().name == "n6"
+ assert nw.get_next().name == "n7"
assert n3 in nw.history
- assert nw.next().name == "n3"
+ assert nw.get_next().name == "n3"
assert n1 in nw.history
- assert nw.next().name == "n1"
- assert nw.next() is None
+ assert nw.get_next().name == "n1"
+ assert nw.get_next() is None
n8 = MyNode("n8")
n8.add_dependency([n3])
@@ -1150,16 +1150,16 @@ class NodeTestCase(unittest.TestCase):
global cycle_detected
nw = SCons.Node.Walker(n3, cycle_func = cycle)
- n = nw.next()
+ n = nw.get_next()
assert n.name == "n6", n.name
- n = nw.next()
+ n = nw.get_next()
assert n.name == "n8", n.name
assert cycle_detected
cycle_detected = None
- n = nw.next()
+ n = nw.get_next()
assert n.name == "n7", n.name
- n = nw.next()
- assert nw.next() is None
+ n = nw.get_next()
+ assert nw.get_next() is None
def test_abspath(self):
"""Test the get_abspath() method."""