diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-27 11:07:26 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-27 11:22:40 +0100 |
commit | a1391bf06a839746bd902dd7cba2c63d1e738d37 (patch) | |
tree | eb2b4913633127d939ee17908218b4c4097367e0 /test/git/test_index.py | |
parent | f28a2041f707986b65dbcdb4bb363bb39e4b3f77 (diff) | |
download | gitpython-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_index.py')
-rw-r--r-- | test/git/test_index.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |