Fix multi line param issues in the fast parser.

This commit is contained in:
Dave Halter
2015-02-17 15:24:49 +01:00
parent 7663703989
commit 506d602795
2 changed files with 20 additions and 9 deletions

View File

@@ -244,6 +244,17 @@ def test_func_with_for_and_comment():
check_fp('a\n' + src, 2, 3)
def test_multi_line_params():
src = dedent("""\
def x(a,
b):
pass
foo = 1
""")
check_fp(src, 2)
def test_one_statement_func():
src = dedent("""\
first