Add issues if users want to assign to operators.

This commit is contained in:
Dave Halter
2017-07-26 23:08:36 +02:00
parent 6bdccd61cc
commit e776e2a13d
2 changed files with 17 additions and 0 deletions

View File

@@ -115,11 +115,17 @@ def test_indentation_errors(code, positions):
'b"" = 1',
'b"" = 1',
'"" "" = 1',
'1 | 1 = 3',
'~ 1 = 3',
'not 1 = 3',
'1 and 1 = 3',
'def foo(): (yield 1) = 3',
'def foo(): x = yield 1 = 3',
'async def foo(): await x = 3',
'(a if a else a) = a',
'(True,) = x',
'([False], a) = x',
'a, 1 = x',
# SyntaxErrors from Python/symtable.c
'def f(x, x): pass',