bpo-42057: Add regression test to master. (GH-22893)

This commit is contained in:
Mark Shannon 2020-10-22 16:42:26 +01:00 committed by GitHub
parent b6f2fc9040
commit b52432cb8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -522,6 +522,12 @@ 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()