diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-20 19:27:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 19:27:16 +0200 |
commit | 97f1efb6062188645a470daaa91e3669d739c75f (patch) | |
tree | 52b5013f014bcd50af40156270fe12e3fc7a5b83 /Lib/test/test_generators.py | |
parent | 6c48bf2d9e1e18dfbfa35f7582ddd32f11f75129 (diff) | |
download | cpython-git-97f1efb6062188645a470daaa91e3669d739c75f.tar.gz |
bpo-35169: Improve error messages for forbidden assignments. (GH-10342)
Diffstat (limited to 'Lib/test/test_generators.py')
-rw-r--r-- | Lib/test/test_generators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 7a21cb7e95..320793c7da 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -1865,12 +1865,12 @@ SyntaxError: assignment to yield expression not possible >>> def f(): (yield bar) = y Traceback (most recent call last): ... -SyntaxError: can't assign to yield expression +SyntaxError: cannot assign to yield expression >>> def f(): (yield bar) += y Traceback (most recent call last): ... -SyntaxError: can't assign to yield expression +SyntaxError: cannot assign to yield expression Now check some throw() conditions: |