[Python-checkins] bpo-42057: Add a test case (GH-22878)
methane
webhook-mailer at python.org
Wed Oct 21 22:28:44 EDT 2020
https://github.com/python/cpython/commit/8f6787d93db1b6022db44b1e1d22460c2b74f60b
commit: 8f6787d93db1b6022db44b1e1d22460c2b74f60b
branch: 3.9
author: Inada Naoki <songofacandy at gmail.com>
committer: methane <songofacandy at gmail.com>
date: 2020-10-22T11:28:36+09:00
summary:
bpo-42057: Add a test case (GH-22878)
files:
M Lib/test/test_peepholer.py
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py
index 7913e91e453ca..55543de619718 100644
--- a/Lib/test/test_peepholer.py
+++ b/Lib/test/test_peepholer.py
@@ -522,6 +522,13 @@ def f():
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()
More information about the Python-checkins
mailing list