Use set literals

This commit is contained in:
Hugo committed 2018-01-07 10:40:36 +02:00
1 parent 3644c72efe
commit 3e8cd9f128
7 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ def test_completion_on_complex_literals():
_check_number('4.0j.', 'complex')
# No dot no completion - I thought, but 4j is actually a literall after
# which a keyword like or is allowed. Good times, haha!
assert (set([c.name for c in api.Script('4j').completions()]) ==
assert ({c.name for c in api.Script('4j').completions()} ==
{'if', 'and', 'in', 'is', 'not', 'or'})