diff options
author | Mark Shannon <mark@hotpy.org> | 2020-10-22 15:42:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 15:42:26 (GMT) |
commit | b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0 (patch) | |
tree | 87f729130581e49b85b7fb1ee7aae024a1dc1735 /Lib/test/test_peepholer.py | |
parent | b6f2fc90409e291822166d74ce7402e0ef4dba91 (diff) | |
download | cpython-b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0.zip cpython-b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0.tar.gz cpython-b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0.tar.bz2 |
bpo-42057: Add regression test to master. (GH-22893)
Diffstat (limited to 'Lib/test/test_peepholer.py')
-rw-r--r-- | Lib/test/test_peepholer.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 65047ca..92a82cc 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py @@ -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() |