From 16ab07063cb564c1937714bd39d6915172f005b5 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Fri, 15 May 2020 02:04:52 +0100 Subject: bpo-40334: Correctly identify invalid target in assignment errors (GH-20076) Co-authored-by: Lysandros Nikolaou --- Lib/test/test_genexps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_genexps.py') diff --git a/Lib/test/test_genexps.py b/Lib/test/test_genexps.py index 86e4e195f5..5c1a209b0e 100644 --- a/Lib/test/test_genexps.py +++ b/Lib/test/test_genexps.py @@ -158,7 +158,7 @@ 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: cannot assign to generator expression + SyntaxError: 'generator expression' is an illegal expression for augmented assignment ########### Tests borrowed from or inspired by test_generators.py ############ -- cgit v1.2.1