]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42057: Add a test case (GH-22878)
authorInada Naoki <songofacandy@gmail.com>
Thu, 22 Oct 2020 02:28:36 +0000 (11:28 +0900)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 02:28:36 +0000 (11:28 +0900)
Lib/test/test_peepholer.py

index 7913e91e453caa3334e7888cfe458f4d6edc4e59..55543de61971829d21ad4d57698c7f0f6801d278 100644 (file)
@@ -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()