From a1391bf06a839746bd902dd7cba2c63d1e738d37 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 27 Nov 2009 11:07:26 +0100 Subject: ItemTraversal: Predicate and prune functions now provide depth information, allowing the callee to know more about its environment --- test/git/test_commit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/git/test_commit.py') 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): -- cgit v1.2.1