Replace function call with set literal

This commit is contained in:
Hugo committed 2018-01-07 10:40:06 +02:00
1 parent 5755fcb900
commit cc623218e5
13 files changed
+32 -32

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ def test_complete_on_empty_import():
# relative import
assert 10 < len(Script("from . import classes", 1, 6, 'whatever.py').completions()) < 30
wanted = set(['ImportError', 'import', 'ImportWarning'])
wanted = {'ImportError', 'import', 'ImportWarning'}
assert set([c.name for c in Script("import").completions()]) == wanted
assert len(Script("import import", path='').completions()) > 0