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

kumaraditya303 webhook-mailer at python.org
Sun May 7 01:11:07 EDT 2023


https://github.com/python/cpython/commit/c5dafeaa6d2dddd1d9e611424d8abf3a934880c6
commit: c5dafeaa6d2dddd1d9e611424d8abf3a934880c6
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-05-07T05:11:00Z
summary:

[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 at users.noreply.github.com>

files:
M Lib/test/test_generators.py

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 @@ 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):



More information about the Python-checkins mailing list