summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorymki4360 <132453923+ymki4360@users.noreply.github.com>2023-05-07 04:44:46 (GMT)
committerGitHub <noreply@github.com>2023-05-07 04:44:46 (GMT)
commit472938316a85c706c06ad1b3727a205d5bffcb1f (patch)
tree3e354101220ee430a3747b949a666c3693b9262c
parent69621d1b09c996e43a1e13d2fa4c317d3dd4d738 (diff)
downloadcpython-472938316a85c706c06ad1b3727a205d5bffcb1f.zip
cpython-472938316a85c706c06ad1b3727a205d5bffcb1f.tar.gz
cpython-472938316a85c706c06ad1b3727a205d5bffcb1f.tar.bz2
Re-enable commented-out test in test_generators.py (#104130)
-rw-r--r--Lib/test/test_generators.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index cc782ea..31680b5 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):