From: ymki4360 <132453923+ymki4360@users.noreply.github.com> Date: Sun, 7 May 2023 04:44:46 +0000 (+0900) Subject: Re-enable commented-out test in test_generators.py (#104130) X-Git-Tag: v3.12.0b1~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=472938316a85c706c06ad1b3727a205d5bffcb1f;p=thirdparty%2FPython%2Fcpython.git Re-enable commented-out test in test_generators.py (#104130) --- diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index cc782ea1ee5d..31680b5a92e0 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -2141,11 +2141,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):