mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-14 09:37:05 +08:00
Fix an issue with Function/Flow combination in the fast parser.
This commit is contained in:
@@ -142,6 +142,20 @@ def test_for():
|
||||
check_fp(src, 1)
|
||||
|
||||
|
||||
def test_func_with_if():
|
||||
src = dedent("""\
|
||||
def recursion(a):
|
||||
if foo:
|
||||
return recursion(a)
|
||||
else:
|
||||
if bar:
|
||||
return inexistent
|
||||
else:
|
||||
return a
|
||||
""")
|
||||
check_fp(src, 1)
|
||||
|
||||
|
||||
def test_incomplete_function():
|
||||
source = '''return ImportErr'''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user