mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +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
|
@ -138,15 +138,6 @@ class ExceptionTests(unittest.TestCase):
|
|||
else:
|
||||
self.fail("failed to get expected SyntaxError")
|
||||
|
||||
s = '''while 1:
|
||||
try:
|
||||
pass
|
||||
finally:
|
||||
continue'''
|
||||
|
||||
if not sys.platform.startswith('java'):
|
||||
ckmsg(s, "'continue' not supported inside 'finally' clause")
|
||||
|
||||
s = '''if 1:
|
||||
try:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue