aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_peepholer.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py
index 7086a42b095..8306c896a57 100644
--- a/Lib/test/test_peepholer.py
+++ b/Lib/test/test_peepholer.py
@@ -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()