summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_peepholer.py6
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()