We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69621d1 commit 4729383Copy full SHA for 4729383
Lib/test/test_generators.py
@@ -2141,11 +2141,10 @@ def printsolution(self, x):
2141
...
2142
SyntaxError: 'yield' outside function
2143
2144
-# Pegen does not produce this error message yet
2145
-# >>> def f(): x = yield = y
2146
-# Traceback (most recent call last):
2147
-# ...
2148
-# SyntaxError: assignment to yield expression not possible
+>>> def f(): x = yield = y
+Traceback (most recent call last):
+ ...
+SyntaxError: assignment to yield expression not possible
2149
2150
>>> def f(): (yield bar) = y
2151
Traceback (most recent call last):
0 commit comments