summaryrefslogtreecommitdiff
path: root/git/test/test_tree.py
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-03-18 21:50:16 +0200
committerHugo <hugovk@users.noreply.github.com>2018-03-18 22:26:31 +0200
commitdb0dfa07e34ed80bfe0ce389da946755ada13c5d (patch)
treedb0f3601ad1c44986953678a61ff59e8aa14e1a4 /git/test/test_tree.py
parent87a644184b05e99a4809de378f21424ef6ced06e (diff)
downloadgitpython-db0dfa07e34ed80bfe0ce389da946755ada13c5d.tar.gz
Unnecessary generator - rewrite as a set comprehension
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 3005722f..dc23f29c 100644
--- a/git/test/test_tree.py
+++ b/git/test/test_tree.py
@@ -88,7 +88,7 @@ class TestTree(TestBase):
# trees and blobs
assert len(set(trees) | set(root.trees)) == len(trees)
- assert len(set(b for b in root if isinstance(b, Blob)) | set(root.blobs)) == len(root.blobs)
+ assert len({b for b in root if isinstance(b, Blob)} | set(root.blobs)) == len(root.blobs)
subitem = trees[0][0]
assert "/" in subitem.path
assert subitem.name == osp.basename(subitem.path)