diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-01-02 13:22:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 13:22:39 (GMT) |
commit | 1c381ec4edfa6364474fa795a93ed1cccb6df903 (patch) | |
tree | dfe16b94545826e1399114722f0e6aa329408f3c /Lib/test/test_syntax.py | |
parent | 9beb56594db36eab985f1fa05385eb34fae178ac (diff) | |
download | cpython-1c381ec4edfa6364474fa795a93ed1cccb6df903.zip cpython-1c381ec4edfa6364474fa795a93ed1cccb6df903.tar.gz cpython-1c381ec4edfa6364474fa795a93ed1cccb6df903.tar.bz2 |
[3.11] gh-113602: Bail out when the parser tries to override existing errors (GH-113607) (#113653)
gh-113602: Bail out when the parser tries to override existing errors (GH-113607)
(cherry picked from commit 9ed36d533ab8b256f0a589b5be6d7a2fdcf4aff2)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 050d084..9dd0f74 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -2143,6 +2143,8 @@ func( """ self._check_error(code, "parenthesis '\\)' does not match opening parenthesis '\\['") + self._check_error("match y:\n case e(e=v,v,", " was never closed") + # Examples with dencodings s = b'# coding=latin\n(aaaaaaaaaaaaaaaaa\naaaaaaaaaaa\xb5' self._check_error(s, r"'\(' was never closed") |