diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2021-11-19 23:11:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 23:11:57 (GMT) |
commit | 546cefcda75d7150b55c8bc1724bea35a1e12890 (patch) | |
tree | 18d9c398c5d6cdc610bffcedfc74a82c5250a0c6 /Lib/test/test_exceptions.py | |
parent | c8c21bdd199f9feb75fc6cdb398a686dc133b99f (diff) | |
download | cpython-546cefcda75d7150b55c8bc1724bea35a1e12890.zip cpython-546cefcda75d7150b55c8bc1724bea35a1e12890.tar.gz cpython-546cefcda75d7150b55c8bc1724bea35a1e12890.tar.bz2 |
bpo-45727: Make the syntax error for missing comma more consistent (GH-29427)
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 098804fad..1341f77 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -233,6 +233,7 @@ class ExceptionTests(unittest.TestCase): check('[file for\n str(file) in []]', 2, 2) check("ages = {'Alice'=22, 'Bob'=23}", 1, 16) check('match ...:\n case {**rest, "key": value}:\n ...', 2, 19) + check("a b c d e f", 1, 1) # Errors thrown by compile.c check('class foo:return 1', 1, 11) |