mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-27 14:53:15 +08:00
Some more tests.
This commit is contained in:
1 parent
0f73f1c9c4
commit
8071580a4c
1 file changed
+4
@@ -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