tests for import problems

This commit is contained in:
David Halter
2013-07-19 00:56:56 +02:00
parent a7cfb89c2a
commit b84315b829
2 changed files with 19 additions and 1 deletions

View File

@@ -318,6 +318,7 @@ class Completion(BaseDefinition):
provide additional information about a completion.
"""
def __init__(self, name, needs_dot, like_name_length, base):
print name
super(Completion, self).__init__(name.parent, name.start_pos)
self._name = name

View File

@@ -235,7 +235,6 @@ A().hello
# -----------------
# unicode
# -----------------
a = 'smörbröd'
#? str()
a
@@ -243,3 +242,21 @@ xyz = 'smörbröd.py'
if 1:
#? str()
xyz
# -----------------
# exceptions
# -----------------
try:
import math
except ImportError as i_a:
#? ['i_a']
i_a
#? ImportError()
i_a
try:
import math
except ImportError, i_b:
#? ['i_b']
i_b
#? ImportError()
i_b