mirror of
https://github.com/davidhalter/parso.git
synced 2026-05-19 15:00:08 +08:00
Some more tests.
This commit is contained in:
@@ -136,6 +136,10 @@ def test_indentation_errors(code, positions):
|
|||||||
'for x, 1 in []: pass',
|
'for x, 1 in []: pass',
|
||||||
'for (not 1) in []: pass',
|
'for (not 1) in []: pass',
|
||||||
'[x for 1 in y]',
|
'[x for 1 in y]',
|
||||||
|
'[x for a, 3 in y]',
|
||||||
|
'(x for 1 in y)',
|
||||||
|
'{x for 1 in y}',
|
||||||
|
'{x:x for 1 in y}',
|
||||||
|
|
||||||
# SyntaxErrors from Python/symtable.c
|
# SyntaxErrors from Python/symtable.c
|
||||||
'def f(x, x): pass',
|
'def f(x, x): pass',
|
||||||
|
|||||||
Reference in New Issue
Block a user