diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-26 18:16:13 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-26 18:16:13 +0100 |
commit | accfe361443b3cdb8ea43ca0ccb8fbb2fa202e12 (patch) | |
tree | a7786d8ac7fa5772506d9020f0221997991f1b28 /test/git/test_tree.py | |
parent | 7ef66a66dc52dcdf44cebe435de80634e1beb268 (diff) | |
download | gitpython-accfe361443b3cdb8ea43ca0ccb8fbb2fa202e12.tar.gz |
tree: added traversal method, adjusted tests
Fixed critical bug in object code: IndexObjects now use their path as hashkey, not the data\!
Diffstat (limited to 'test/git/test_tree.py')
-rw-r--r-- | test/git/test_tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/git/test_tree.py b/test/git/test_tree.py index e0c1f134..2bfd9922 100644 --- a/test/git/test_tree.py +++ b/test/git/test_tree.py @@ -29,7 +29,7 @@ class TestTree(TestCase): # limit recursion level to 0 - should be same as default iteration assert all_items assert 'CHANGES' in root - assert len(list(root)) == len(list(root.traverse(max_depth=0))) + assert len(list(root)) == len(list(root.traverse(depth=1))) # only choose trees trees_only = lambda i: i.type == "tree" |