mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-28 18:33:18 +08:00
Rewrite last newlines in the fast parser to get correct get_code outputs even with the fast parser.
This commit is contained in:
1 parent
489ea8fc83
commit
aebeafccc4
2 files changed
+26
No files matched your search
@@ -301,6 +301,15 @@ def test_for_on_one_line():
|
||||
""")
|
||||
check_fp(src, 2)
|
||||
|
||||
src = dedent("""\
|
||||
def hi():
|
||||
for x in foo: pass
|
||||
|
||||
def nested():
|
||||
pass
|
||||
""")
|
||||
check_fp(src, 2)
|
||||
|
||||
|
||||
def test_multi_line_for():
|
||||
src = dedent("""\
|
||||
|
||||
Reference in new issue
Block a user