mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
bpo-45773: Stop "optimizing" certain jump patterns (GH-29505)
This commit is contained in:
parent
9178f533ff
commit
27b69e60da
3 changed files with 49 additions and 76 deletions
|
|
@ -600,5 +600,12 @@ class TestBuglets(unittest.TestCase):
|
|||
except Exception or Exception:
|
||||
pass
|
||||
|
||||
def test_bpo_45773_pop_jump_if_true(self):
|
||||
compile("while True or spam: pass", "<test>", "exec")
|
||||
|
||||
def test_bpo_45773_pop_jump_if_false(self):
|
||||
compile("while True or not spam: pass", "<test>", "exec")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue