summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-06-14 17:07:51 (GMT)
committerGitHub <noreply@github.com>2021-06-14 17:07:51 (GMT)
commit0d0a9eaa822658679cc2b65f125ab74bfd4aedfe (patch)
tree84dbd7265d6288d3ff6d21db99d00ca13ae8cd9f /Lib/test/test_exceptions.py
parent7f021952b2debb51306f70ec96a94ecc7fbffc19 (diff)
downloadcpython-0d0a9eaa822658679cc2b65f125ab74bfd4aedfe.zip
cpython-0d0a9eaa822658679cc2b65f125ab74bfd4aedfe.tar.gz
cpython-0d0a9eaa822658679cc2b65f125ab74bfd4aedfe.tar.bz2
[3.9] bpo-44409: Fix error location in tokenizer errors that happen during initialization (GH-26712). (GH-26723)
(cherry picked from commit 507ed6fa1d6661e0f8e6d3282764aa9625a99594) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 8d125b5..0f7b7f8 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -235,6 +235,7 @@ class ExceptionTests(unittest.TestCase):
""", 9, 20)
check("pass\npass\npass\n(1+)\npass\npass\npass", 4, 4)
check("(1+)", 1, 4)
+ check(b"\xef\xbb\xbf#coding: utf8\nprint('\xe6\x88\x91')\n", 0, -1)
# Errors thrown by symtable.c
check('x = [(yield i) for i in range(3)]', 1, 5)