mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)
This commit is contained in:
parent
134cb01cda
commit
fe2bbb1869
10 changed files with 97 additions and 70 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue