[Python-checkins] bpo-42057: Add regression test to master. (GH-22893)
corona10
webhook-mailer at python.org
Thu Oct 22 11:42:37 EDT 2020
https://github.com/python/cpython/commit/b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0
commit: b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0
branch: master
author: Mark Shannon <mark at hotpy.org>
committer: corona10 <donghee.na92 at gmail.com>
date: 2020-10-23T00:42:26+09:00
summary:
bpo-42057: Add regression test to master. (GH-22893)
files:
M Lib/test/test_peepholer.py
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py
index 65047cace56c1..92a82cc54f268 100644
--- a/Lib/test/test_peepholer.py
+++ b/Lib/test/test_peepholer.py
@@ -522,6 +522,12 @@ 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