]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Re-enable commented-out test in test_generators.py (#104130)
authorymki4360 <132453923+ymki4360@users.noreply.github.com>
Sun, 7 May 2023 04:44:46 +0000 (13:44 +0900)
committerGitHub <noreply@github.com>
Sun, 7 May 2023 04:44:46 +0000 (10:14 +0530)
Lib/test/test_generators.py

index cc782ea1ee5dff159931c8e98761599c7496ef4d..31680b5a92e0f3ca7fae166b296d2136c2af01fa 100644 (file)
@@ -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):