Fix an issue where a default value was wrongly used

This commit is contained in:
Dave Halter
2018-01-31 00:11:30 +01:00
parent 2b9429be38
commit 3ae0560f1c
2 changed files with 4 additions and 1 deletions

View File

@@ -290,6 +290,9 @@ def test_type(Script):
else:
assert c.type in ('function', 'instance')
for c in Script('list.').completions():
assert c.type
# Github issue #397, type should never raise an error.
for c in Script('import os; os.path.').completions():
assert c.type