mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
fix syntax tests after formatting change
This commit is contained in:
parent
ee42545884
commit
52b9620c19
2 changed files with 88 additions and 44 deletions
|
@ -137,12 +137,14 @@ Verify that syntax error's are raised for genexps used as lvalues
|
|||
>>> (y for y in (1,2)) = 10
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: can't assign to generator expression (<doctest test.test_genexps.__test__.doctests[40]>, line 1)
|
||||
File "<doctest test.test_genexps.__test__.doctests[40]>", line 1
|
||||
SyntaxError: can't assign to generator expression
|
||||
|
||||
>>> (y for y in (1,2)) += 10
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: augmented assignment to generator expression not possible (<doctest test.test_genexps.__test__.doctests[41]>, line 1)
|
||||
File "<doctest test.test_genexps.__test__.doctests[41]>", line 1
|
||||
SyntaxError: augmented assignment to generator expression not possible
|
||||
|
||||
|
||||
########### Tests borrowed from or inspired by test_generators.py ############
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue