]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Re-enable commented-out test in test_generators.py (GH-104130) (#104261)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 7 May 2023 05:11:00 +0000 (22:11 -0700)
committerGitHub <noreply@github.com>
Sun, 7 May 2023 05:11:00 +0000 (05:11 +0000)
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

index 353073dbfce00a7c4710caa17ca4100fd900e8e1..04c44c8b4ac583164b842f8ff440246a913bf778 100644 (file)
@@ -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):