Skip to content

Commit b52432c

Browse files
authored
bpo-42057: Add regression test to master. (GH-22893)
1 parent b6f2fc9 commit b52432c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_peepholer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,12 @@ 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
525531

526532
if __name__ == "__main__":
527533
unittest.main()

0 commit comments

Comments
 (0)