summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-07-10 01:29:29 +0100
committerGitHub <noreply@github.com>2021-07-10 01:29:29 +0100
commitf24777c2b329974b69d2a3bf5cfc37e0fcace36c (patch)
treed89b8067f343529ea0cdb5f187767e524693e8c6 /Lib/test/test_exceptions.py
parent7b21108445969398f6d1db9234fc0fe727565d2e (diff)
downloadcpython-git-f24777c2b329974b69d2a3bf5cfc37e0fcace36c.tar.gz
bpo-44317: Improve tokenizer errors with more informative locations (GH-26555)
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 8f689546a6..f92637f993 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,