mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
gh-115823: Calculate correctly error locations when dealing with implicit encodings (#115824)
This commit is contained in:
parent
b7383b8b71
commit
015b97d19a
3 changed files with 13 additions and 11 deletions
|
@ -301,6 +301,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
{
|
||||
6
|
||||
0="""''', 5, 13)
|
||||
check('b"fooжжж"'.encode(), 1, 1, 1, 10)
|
||||
|
||||
# Errors thrown by symtable.c
|
||||
check('x = [(yield i) for i in range(3)]', 1, 7)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue