mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-18 05:11:26 +08:00
Fix an issue with Function/Flow combination in the fast parser.
This commit is contained in:
1 parent
dde0e9c7c6
commit
0a537c05c4
2 files changed
+19
-3
No files matched your search
@@ -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