mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
bpo-37830: Fix compilation of break and continue in finally. (GH-15320)
Fix compilation of "break" and "continue" in the "finally" block when the corresponding "try" block contains "return" with a non-constant value.
This commit is contained in:
parent
e9c90aa431
commit
ef61c524dd
11 changed files with 305 additions and 194 deletions
|
@ -861,7 +861,7 @@ class MagicNumberTests(unittest.TestCase):
|
|||
in advance. Such exceptional releases will then require an
|
||||
adjustment to this test case.
|
||||
"""
|
||||
EXPECTED_MAGIC_NUMBER = 3410
|
||||
EXPECTED_MAGIC_NUMBER = 3413
|
||||
actual = int.from_bytes(importlib.util.MAGIC_NUMBER[:2], 'little')
|
||||
|
||||
msg = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue