summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_generators.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-20 17:27:16 (GMT)
committerGitHub <noreply@github.com>2018-11-20 17:27:16 (GMT)
commit97f1efb6062188645a470daaa91e3669d739c75f (patch)
tree52b5013f014bcd50af40156270fe12e3fc7a5b83 /Lib/test/test_generators.py
parent6c48bf2d9e1e18dfbfa35f7582ddd32f11f75129 (diff)
downloadcpython-97f1efb6062188645a470daaa91e3669d739c75f.zip
cpython-97f1efb6062188645a470daaa91e3669d739c75f.tar.gz
cpython-97f1efb6062188645a470daaa91e3669d739c75f.tar.bz2
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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index 7a21cb7..320793c 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: