Skip to content

Commit 8f6787d

Browse files
authored
bpo-42057: Add a test case (GH-22878)
1 parent 07a44d9 commit 8f6787d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/test/test_peepholer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,13 @@ def f():
522522
with self.assertRaises(ValueError):
523523
f()
524524

525+
def test_bpo_42057(self):
526+
for i in range(10):
527+
try:
528+
raise Exception
529+
except Exception or Exception:
530+
pass
531+
525532

526533
if __name__ == "__main__":
527534
unittest.main()

0 commit comments

Comments
 (0)