diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-05-15 02:04:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 02:04:52 +0100 |
commit | 16ab07063cb564c1937714bd39d6915172f005b5 (patch) | |
tree | f536d329aa196ac4755d3407a698dae48f9bb7b5 /Lib/test/test_peg_parser.py | |
parent | 7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac (diff) | |
download | cpython-git-16ab07063cb564c1937714bd39d6915172f005b5.tar.gz |
bpo-40334: Correctly identify invalid target in assignment errors (GH-20076)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Diffstat (limited to 'Lib/test/test_peg_parser.py')
-rw-r--r-- | Lib/test/test_peg_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_peg_parser.py b/Lib/test/test_peg_parser.py index 71e071940d..9614e45799 100644 --- a/Lib/test/test_peg_parser.py +++ b/Lib/test/test_peg_parser.py @@ -625,7 +625,7 @@ FAIL_SPECIALIZED_MESSAGE_CASES = [ ("(a, b): int", "only single target (not tuple) can be annotated"), ("[a, b]: int", "only single target (not list) can be annotated"), ("a(): int", "illegal target for annotation"), - ("1 += 1", "cannot assign to literal"), + ("1 += 1", "'literal' is an illegal expression for augmented assignment"), ("pass\n pass", "unexpected indent"), ("def f():\npass", "expected an indented block"), ("def f(*): pass", "named arguments must follow bare *"), |