diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-06-14 10:07:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 10:07:52 -0700 |
commit | 133cddf76e8265536c584872351c191e3afd66a2 (patch) | |
tree | c6f1856f20265cdd980aff8723e88419bc879a9e /Lib/test/test_exceptions.py | |
parent | fc310cb862ce0411bb5daed37f7f31b75647495b (diff) | |
download | cpython-git-133cddf76e8265536c584872351c191e3afd66a2.tar.gz |
bpo-44409: Fix error location in tokenizer errors that happen during initialization (GH-26712)
(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.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 9cb5466a67..d444a122af 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -246,6 +246,7 @@ class ExceptionTests(unittest.TestCase): check("pass\npass\npass\n(1+)\npass\npass\npass", 4, 4) check("(1+)", 1, 4) check("[interesting\nfoo()\n", 1, 1) + 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) |