From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 7 May 2023 05:11:00 +0000 (-0700) Subject: [3.11] Re-enable commented-out test in test_generators.py (GH-104130) (#104261) X-Git-Tag: v3.11.4~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5dafeaa6d2dddd1d9e611424d8abf3a934880c6;p=thirdparty%2FPython%2Fcpython.git [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> --- diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 353073dbfce0..04c44c8b4ac5 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):