Files
jedi/test/completion/invalid.py
2012-10-01 09:51:57 +02:00

104 lines
1.1 KiB
Python

# This file is less about the results and much more about the fact, that no
# exception should be thrown.
#? ['upper']
str()).upper
from a import (b
def blub():
return 0
def openbrace():
asdf = 3
asdf
asdf(
#? int()
asdf
return 1
#? int()
openbrace()
blub([
#? int()
openbrace()
def indentfault():
asd(
indentback
#? []
indentfault().
def openbrace2():
asd(
def normalfunc():
return 1
#? int()
normalfunc()
# first part not complete (raised errors)
if a
a
else:
#? ['AttributeError']
AttributeError
try
#? ['AttributeError']
except AttributeError
pass
finally:
pass
#? ['isinstance']
if isi
try:
except TypeError:
#? str()
""
# wrong ternary expression
a = 1 if
#? int()
a
for for_local in :
for_local
#? ['for_local']
for_local
#?
for_local
a2 = [for a2 in [0]]
#?
a2[0]
a3 = [for xyz in]
#?
a3[0]
a3 = [a4 for in 'b']
#? str()
a3[0]
a3 = [a4 for a in for x in y]
#?
a3[0]
a = [for a in
def break(): pass
#?
a[0]
a = [a for a in [1,2]
def break(): pass
#? list()
a[0]
#? []
int()).