From c5dafeaa6d2dddd1d9e611424d8abf3a934880c6 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 6 May 2023 22:11:00 -0700 Subject: [3.11] Re-enable commented-out test in test_generators.py (GH-104130) (#104261) Re-enable commented-out test in test_generators.py (GH-104130) (cherry picked from commit 472938316a85c706c06ad1b3727a205d5bffcb1f) Co-authored-by: ymki4360 <132453923+ymki4360@users.noreply.github.com> --- Lib/test/test_generators.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 353073d..04c44c8 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -2097,11 +2097,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): -- cgit v0.12