Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Lib/test/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2141,11 +2141,10 @@ def printsolution(self, x):
...
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):
Expand Down