mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
bpo-43163: Handle unclosed parentheses in codeop (GH-24483)
This commit is contained in:
parent
b74396c316
commit
dbb228189b
3 changed files with 16 additions and 1 deletions
|
|
@ -135,6 +135,10 @@ def test_incomplete(self):
|
|||
ai("a = {")
|
||||
ai("b + {")
|
||||
|
||||
ai("print([1,\n2,")
|
||||
ai("print({1:1,\n2:3,")
|
||||
ai("print((1,\n2,")
|
||||
|
||||
ai("if 9==3:\n pass\nelse:")
|
||||
ai("if 9==3:\n pass\nelse:\n")
|
||||
ai("if 9==3:\n pass\nelse:\n pass")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue