mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-109627: duplicated smalll exit blocks need to be assigned jump target labels (#109630)
This commit is contained in:
parent
14cdefa667
commit
9ccf0545ef
3 changed files with 29 additions and 6 deletions
|
@ -1252,6 +1252,15 @@ class TestSpecifics(unittest.TestCase):
|
|||
return a, b
|
||||
self.assertEqual(f(), (54, 96))
|
||||
|
||||
def test_duplicated_small_exit_block(self):
|
||||
# See gh-109627
|
||||
def f():
|
||||
while element and something:
|
||||
try:
|
||||
return something
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
@requires_debug_ranges()
|
||||
class TestSourcePositions(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue