Handle nested statements.

This commit is contained in:
Dave Halter
2017-07-26 22:19:02 +02:00
parent d48e927224
commit 6bdccd61cc
2 changed files with 15 additions and 5 deletions

View File

@@ -116,10 +116,10 @@ def test_indentation_errors(code, positions):
'b"" = 1',
'"" "" = 1',
'def foo(): (yield 1) = 3',
'def foo(): x = yield 1 = 3'
'',
#'(True,) = x',
#'([False], a) = x',
'def foo(): x = yield 1 = 3',
'(a if a else a) = a',
'(True,) = x',
'([False], a) = x',
# SyntaxErrors from Python/symtable.c
'def f(x, x): pass',