mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40619: Correctly handle error lines in programs without file mode (GH-20090)
This commit is contained in:
parent
a482dc500b
commit
bcc3036095
2 changed files with 7 additions and 25 deletions
|
@ -228,6 +228,8 @@ class ExceptionTests(unittest.TestCase):
|
|||
def baz():
|
||||
'''quux'''
|
||||
""", 9, 20)
|
||||
check("pass\npass\npass\n(1+)\npass\npass\npass", 4, 4)
|
||||
check("(1+)", 1, 4)
|
||||
|
||||
# Errors thrown by symtable.c
|
||||
check('x = [(yield i) for i in range(3)]', 1, 5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue