From 24ba27fb37b851921c0a8745b59772965ce72b7f Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Wed, 21 Oct 2020 11:33:23 +0900 Subject: add regression test case --- 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 7913e91e45..55543de619 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() -- cgit v1.2.1