]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42057: Add regression test to master. (GH-22893)
authorMark Shannon <mark@hotpy.org>
Thu, 22 Oct 2020 15:42:26 +0000 (16:42 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 15:42:26 +0000 (00:42 +0900)
Lib/test/test_peepholer.py

index 65047cace56c122f88f8b0fb7bf06369984a67e3..92a82cc54f26869d02691ce5840969679286f4f8 100644 (file)
@@ -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()