summaryrefslogtreecommitdiff
path: root/git/test/test_tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_tree.py')
-rw-r--r--git/test/test_tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_tree.py b/git/test/test_tree.py
index 2b2ddb05..3005722f 100644
--- a/git/test/test_tree.py
+++ b/git/test/test_tree.py
@@ -79,7 +79,7 @@ class TestTree(TestBase):
# only choose trees
trees_only = lambda i, d: i.type == "tree"
trees = list(root.traverse(predicate=trees_only))
- assert len(trees) == len(list(i for i in root.traverse() if trees_only(i, 0)))
+ assert len(trees) == len([i for i in root.traverse() if trees_only(i, 0)])
# test prune
lib_folder = lambda t, d: t.path == "lib"