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