mirror of https://github.com/python/cpython
Re-enable commented-out test in test_generators.py (#104130)
This commit is contained in:
parent
69621d1b09
commit
472938316a
|
@ -2141,11 +2141,10 @@ Traceback (most recent call last):
|
|||
...
|
||||
SyntaxError: 'yield' outside function
|
||||
|
||||
# Pegen does not produce this error message yet
|
||||
# >>> def f(): x = yield = y
|
||||
# Traceback (most recent call last):
|
||||
# ...
|
||||
# SyntaxError: assignment to yield expression not possible
|
||||
>>> def f(): x = yield = y
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: assignment to yield expression not possible
|
||||
|
||||
>>> def f(): (yield bar) = y
|
||||
Traceback (most recent call last):
|
||||
|
|
Loading…
Reference in New Issue