summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-27 11:07:26 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-27 11:22:40 +0100
commita1391bf06a839746bd902dd7cba2c63d1e738d37 (patch)
treeeb2b4913633127d939ee17908218b4c4097367e0 /test/git/test_commit.py
parentf28a2041f707986b65dbcdb4bb363bb39e4b3f77 (diff)
downloadgitpython-a1391bf06a839746bd902dd7cba2c63d1e738d37.tar.gz
ItemTraversal: Predicate and prune functions now provide depth information, allowing the callee to know more about its environment
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r--test/git/test_commit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py
index e06e35f4..0c05ba50 100644
--- a/test/git/test_commit.py
+++ b/test/git/test_commit.py
@@ -69,10 +69,10 @@ class TestCommit(TestBase):
assert len(list(start.traverse(ignore_self=False, depth=0))) == 1
# prune
- assert start.traverse(branch_first=1, prune=lambda i: i==p0).next() == p1
+ assert start.traverse(branch_first=1, prune=lambda i,d: i==p0).next() == p1
# predicate
- assert start.traverse(branch_first=1, predicate=lambda i: i==p1).next() == p1
+ assert start.traverse(branch_first=1, predicate=lambda i,d: i==p1).next() == p1
@patch_object(Git, '_call_process')
def test_rev_list_bisect_all(self, git):