summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_genexps.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_genexps.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_genexps.py')
-rw-r--r--Lib/test/test_genexps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_genexps.py b/Lib/test/test_genexps.py
index fb531d6..fd712bb 100644
--- a/Lib/test/test_genexps.py
+++ b/Lib/test/test_genexps.py
@@ -137,12 +137,12 @@ Verify that syntax error's are raised for genexps used as lvalues
>>> (y for y in (1,2)) = 10
Traceback (most recent call last):
...
- SyntaxError: can't assign to generator expression
+ SyntaxError: cannot assign to generator expression
>>> (y for y in (1,2)) += 10
Traceback (most recent call last):
...
- SyntaxError: can't assign to generator expression
+ SyntaxError: cannot assign to generator expression
########### Tests borrowed from or inspired by test_generators.py ############