mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-16 21:21:25 +08:00
Fix for loop issues in the fast parser.
This commit is contained in:
1 parent
e412694fa2
commit
dde0e9c7c6
3 files changed
+16
-9
No files matched your search
@@ -131,6 +131,17 @@ def test_if_simple():
|
||||
check_fp(src + "else:\n a = ''\na", 1)
|
||||
|
||||
|
||||
def test_for():
|
||||
src = dedent("""\
|
||||
for a in [1,2]:
|
||||
a
|
||||
|
||||
for a1 in 1,"":
|
||||
a1
|
||||
""")
|
||||
check_fp(src, 1)
|
||||
|
||||
|
||||
def test_incomplete_function():
|
||||
source = '''return ImportErr'''
|
||||
|
||||
|
||||
Reference in new issue
Block a user