mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-109823: Adjust labels in compiler when removing an empty basic block which is a jump target (#109839)
This commit is contained in:
parent
88a6137cdb
commit
d73c12b88c
3 changed files with 15 additions and 1 deletions
|
@ -1272,6 +1272,11 @@ class TestSpecifics(unittest.TestCase):
|
|||
else:
|
||||
1 if 1 else 1
|
||||
|
||||
def test_remove_empty_basic_block_with_jump_target_label(self):
|
||||
# See gh-109823
|
||||
def f(x):
|
||||
while x:
|
||||
0 if 1 else 0
|
||||
|
||||
@requires_debug_ranges()
|
||||
class TestSourcePositions(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue