Add another for in one line test for the fast parser.
This commit is contained in:
1 parent
db31e0e37d
commit
3680784234
1 file changed
+9
@@ -269,6 +269,15 @@ def test_for_on_one_line():
|
||||
""")
|
||||
check_fp(src, 2)
|
||||
|
||||
src = dedent("""\
|
||||
def hi():
|
||||
for x in foo: pass
|
||||
pass
|
||||
|
||||
pass
|
||||
""")
|
||||
check_fp(src, 2)
|
||||
|
||||
|
||||
def test_wrong_indentation():
|
||||
src = dedent("""\
|
||||
|
||||
Reference in new issue
Block a user