commit | 8f6787d93db1b6022db44b1e1d22460c2b74f60b | [log] [tgz] |
---|---|---|
author | Inada Naoki <songofacandy@gmail.com> | Thu Oct 22 11:28:36 2020 +0900 |
committer | GitHub <noreply@github.com> | Thu Oct 22 11:28:36 2020 +0900 |
tree | eaedb4fcf4acb911e70954fe815a5e6b566172ee | |
parent | 07a44d9572c7746568a7fe2fbcd42127fd6d4019 [diff] |
bpo-42057: Add a test case (GH-22878)
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 7913e91..55543de 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py
@@ -522,6 +522,13 @@ 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()