diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-02-09 20:07:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 20:07:38 (GMT) |
commit | dbb228189b4eb7ab41f326eb79dae669b2c81177 (patch) | |
tree | c4338eabaed5b9ece25fda84b4ca035283f1466a /Lib/test/test_codeop.py | |
parent | b74396c3167cc780f01309148db02709bc37b432 (diff) | |
download | cpython-dbb228189b4eb7ab41f326eb79dae669b2c81177.zip cpython-dbb228189b4eb7ab41f326eb79dae669b2c81177.tar.gz cpython-dbb228189b4eb7ab41f326eb79dae669b2c81177.tar.bz2 |
bpo-43163: Handle unclosed parentheses in codeop (GH-24483)
Diffstat (limited to 'Lib/test/test_codeop.py')
-rw-r--r-- | Lib/test/test_codeop.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_codeop.py b/Lib/test/test_codeop.py index 1da6ca5..ecc46af 100644 --- a/Lib/test/test_codeop.py +++ b/Lib/test/test_codeop.py @@ -135,6 +135,10 @@ class CodeopTests(unittest.TestCase): 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") |