Skip to content

Commit

Permalink
[3.11] Re-enable commented-out test in test_generators.py (pythonGH-1…
Browse files Browse the repository at this point in the history
…04130) (python#104261)

Re-enable commented-out test in test_generators.py (pythonGH-104130)
(cherry picked from commit 4729383)

Co-authored-by: ymki4360 <132453923+ymki4360@users.noreply.github.com>
  • Loading branch information
miss-islington and ymki4360 authored May 7, 2023
1 parent 15ffcf7 commit c5dafea
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Lib/test/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2097,11 +2097,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

0 comments on commit c5dafea

Please sign in to comment.