summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compile.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-03-18 07:56:52 (GMT)
committerGitHub <noreply@github.com>2018-03-18 07:56:52 (GMT)
commitfe2bbb1869b42222a3f331a3dfb8b304a19a5819 (patch)
tree0f9e51eb7b9dbfab1d92a1538cef297081a46b55 /Lib/test/test_compile.py
parent134cb01cda50f02725575808130b05d2d776693f (diff)
downloadcpython-fe2bbb1869b42222a3f331a3dfb8b304a19a5819.zip
cpython-fe2bbb1869b42222a3f331a3dfb8b304a19a5819.tar.gz
cpython-fe2bbb1869b42222a3f331a3dfb8b304a19a5819.tar.bz2
bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)
Diffstat (limited to 'Lib/test/test_compile.py')
-rw-r--r--Lib/test/test_compile.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py
index acebdbd..6b45a24 100644
--- a/Lib/test/test_compile.py
+++ b/Lib/test/test_compile.py
@@ -856,7 +856,7 @@ class TestStackSizeStability(unittest.TestCase):
"""
self.check_stack_size(snippet)
- def test_for_break_inside_finally_block(self):
+ def test_for_break_continue_inside_finally_block(self):
snippet = """
for x in y:
try:
@@ -864,6 +864,8 @@ class TestStackSizeStability(unittest.TestCase):
finally:
if z:
break
+ elif u:
+ continue
else:
a
else: