From: Inada Naoki Date: Thu, 22 Oct 2020 02:28:36 +0000 (+0900) Subject: bpo-42057: Add a test case (GH-22878) X-Git-Tag: v3.9.1rc1~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f6787d93db1b6022db44b1e1d22460c2b74f60b;p=thirdparty%2FPython%2Fcpython.git bpo-42057: Add a test case (GH-22878) --- 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()