From: Mark Shannon Date: Thu, 22 Oct 2020 15:42:26 +0000 (+0100) Subject: bpo-42057: Add regression test to master. (GH-22893) X-Git-Tag: v3.10.0a2~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0;p=thirdparty%2FPython%2Fcpython.git bpo-42057: Add regression test to master. (GH-22893) --- diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 65047cace56c..92a82cc54f26 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py @@ -522,6 +522,12 @@ 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()