mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Add another for in one line test for the fast parser.
This commit is contained in:
@@ -269,6 +269,15 @@ def test_for_on_one_line():
|
|||||||
""")
|
""")
|
||||||
check_fp(src, 2)
|
check_fp(src, 2)
|
||||||
|
|
||||||
|
src = dedent("""\
|
||||||
|
def hi():
|
||||||
|
for x in foo: pass
|
||||||
|
pass
|
||||||
|
|
||||||
|
pass
|
||||||
|
""")
|
||||||
|
check_fp(src, 2)
|
||||||
|
|
||||||
|
|
||||||
def test_wrong_indentation():
|
def test_wrong_indentation():
|
||||||
src = dedent("""\
|
src = dedent("""\
|
||||||
|
|||||||
Reference in New Issue
Block a user