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_index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/git/test_index.py') diff --git a/test/git/test_index.py b/test/git/test_index.py index 2f4da161..e96aff4c 100644 --- a/test/git/test_index.py +++ b/test/git/test_index.py @@ -84,7 +84,7 @@ class TestTree(TestBase): num_blobs = 0 blist = list() - for blob in tree.traverse(predicate = lambda e: e.type == "blob", branch_first=False): + for blob in tree.traverse(predicate = lambda e,d: e.type == "blob", branch_first=False): assert (blob.path,0) in index.entries blist.append(blob) # END for each blob in tree @@ -134,7 +134,7 @@ class TestTree(TestBase): tree = three_way_index.write_tree() assert isinstance(tree, Tree) num_blobs = 0 - for blob in tree.traverse(predicate=lambda item: item.type == "blob"): + for blob in tree.traverse(predicate=lambda item,d: item.type == "blob"): assert (blob.path,0) in three_way_index.entries num_blobs += 1 # END for each blob -- cgit v1.2.1