Resolve kewords types as keyword in completions

Closes #833
This commit is contained in:
Matthias Bussonnier
2017-01-20 18:56:31 -08:00
parent 7300f3e7ef
commit d3e8a9bd52
2 changed files with 10 additions and 0 deletions

View File

@@ -248,6 +248,14 @@ def test_type():
for c in Script('import os; os.path.').completions():
assert c.type
def test_type_II():
"""
GitHub Issue #833, `keyword`s are seen as `module`s
"""
for c in Script('f').completions():
if c.name == 'for':
assert c.type == 'keyword'
class TestGotoAssignments(TestCase):
"""