8000 [3.11] Re-enable commented-out test in test_generators.py (GH-104130) by miss-islington · Pull Request #104261 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] Re-enable commented-out test in test_generators.py (GH-104130) #104261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2023
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
< 8000 /option>
Diff view
Re-enable commented-out test in test_generators.py (GH-104130)
(cherry picked from commit 4729383)

Co-authored-by: ymki4360 <132453923+ymki4360@users.noreply.github.com>
  • Loading branch information
ymki4360 authored and miss-islington committed May 7, 2023
commit 67d52ae35fa3dfbb491270c40bd4b8c51ad42a5b
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