diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-10 00:47:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-10 00:47:33 (GMT) |
commit | 2a722d4fab6a9656f3c03cfdaf6d1684277b8af5 (patch) | |
tree | 599524ffffe9b7de50fac6564eb892204fcf7b6a /Lib/test/test_exceptions.py | |
parent | 2f7636887e9f978352aa47b18d5f376263663ba1 (diff) | |
download | cpython-2a722d4fab6a9656f3c03cfdaf6d1684277b8af5.zip cpython-2a722d4fab6a9656f3c03cfdaf6d1684277b8af5.tar.gz cpython-2a722d4fab6a9656f3c03cfdaf6d1684277b8af5.tar.bz2 |
bpo-44317: Improve tokenizer errors with more informative locations (GH-26555) (GH-27079)
(cherry picked from commit f24777c2b329974b69d2a3bf5cfc37e0fcace36c)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 8f68954..f92637f 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -226,9 +226,9 @@ class ExceptionTests(unittest.TestCase): # Errors thrown by tokenizer.c check('(0x+1)', 1, 3) check('x = 0xI', 1, 6) - check('0010 + 2', 1, 4) + check('0010 + 2', 1, 1) check('x = 32e-+4', 1, 8) - check('x = 0o9', 1, 6) + check('x = 0o9', 1, 7) check('\u03b1 = 0xI', 1, 6) check(b'\xce\xb1 = 0xI', 1, 6) check(b'# -*- coding: iso8859-7 -*-\n\xe1 = 0xI', 2, 6, |