diff options
-rw-r--r-- | Lib/test/test_generators.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index cc782ea1ee5..31680b5a92e 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): |