summaryrefslogtreecommitdiff
path: root/git/test/test_index.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_index.py
parent87a644184b05e99a4809de378f21424ef6ced06e (diff)
downloadgitpython-db0dfa07e34ed80bfe0ce389da946755ada13c5d.tar.gz
Unnecessary generator - rewrite as a set comprehension
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r--git/test/test_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py
index 04638c57..c7739ce8 100644
--- a/git/test/test_index.py
+++ b/git/test/test_index.py
@@ -147,8 +147,8 @@ class TestIndex(TestBase):
blist.append(blob)
# END for each blob in tree
if len(blist) != len(index.entries):
- iset = set(k[0] for k in index.entries.keys())
- bset = set(b.path for b in blist)
+ iset = {k[0] for k in index.entries.keys()}
+ bset = {b.path for b in blist}
raise AssertionError("CMP Failed: Missing entries in index: %s, missing in tree: %s" %
(bset - iset, iset - bset))
# END assertion message