From 8f6787d93db1b6022db44b1e1d22460c2b74f60b Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Thu, 22 Oct 2020 11:28:36 +0900 Subject: [PATCH] bpo-42057: Add a test case (GH-22878) --- Lib/test/test_peepholer.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 7913e91e453c..55543de61971 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py @@ -522,6 +522,13 @@ class TestBuglets(unittest.TestCase): with self.assertRaises(ValueError): f() + def test_bpo_42057(self): + for i in range(10): + try: + raise Exception + except Exception or Exception: + pass + if __name__ == "__main__": unittest.main() -- 2.47.3