Use set literals

This commit is contained in:
Hugo
2018-01-04 18:17:35 +02:00
parent 3644c72efe
commit 3e8cd9f128
7 changed files with 9 additions and 9 deletions

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'})