summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-10-21 11:33:23 +0900
committerInada Naoki <songofacandy@gmail.com>2020-10-21 11:33:23 +0900
commit24ba27fb37b851921c0a8745b59772965ce72b7f (patch)
tree7bcdf252bafe7bbca1ce3855912729429a4c8b44
parent94886ca375c6e172b6872037b6a823e737e812c7 (diff)
downloadcpython-git-bpo-42057.tar.gz
add regression test casebpo-42057
-rw-r--r--Lib/test/test_peepholer.py7
1 files changed, 7 insertions, 0 deletions
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()