Rewrite last newlines in the fast parser to get correct get_code outputs even with the fast parser.

This commit is contained in:
Dave Halter
2015-02-23 13:36:43 +01:00
parent 489ea8fc83
commit aebeafccc4
2 changed files with 26 additions and 0 deletions

View File

@@ -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("""\