summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-27 14:56:35 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-27 15:07:27 +0100
commit8775b6417b95865349a59835c673a88a541f3e13 (patch)
treecb91c0d268113b3835bab2346e67c10872a294e6 /test/git/test_commit.py
parent7ba46b8fba511fdc9b8890c36a6d941d9f2798fe (diff)
downloadgitpython-8775b6417b95865349a59835c673a88a541f3e13.tar.gz
Traversable.traverse: Added as_edge option allowing to receive the source of the item as well to enable predicates to do more proper checking
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r--test/git/test_commit.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py
index e757e148..570ea65e 100644
--- a/test/git/test_commit.py
+++ b/test/git/test_commit.py
@@ -69,8 +69,9 @@ class TestCommit(TestBase):
# at some point, both iterations should stop
assert list(bfirst)[-1] == first
- stoptraverse = self.rorepo.commit("254d04aa3180eb8b8daf7b7ff25f010cd69b4e7d").traverse()
- list(stoptraverse)
+ stoptraverse = self.rorepo.commit("254d04aa3180eb8b8daf7b7ff25f010cd69b4e7d").traverse(as_edge=True)
+ l = list(stoptraverse)
+ assert len(l[0]) == 2
# ignore self
assert start.traverse(ignore_self=False).next() == start