Skip to content

Commit

Permalink
bpo-42057: Add regression test to master. (pythonGH-22893)
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon authored and adorilson committed Mar 11, 2021
1 parent 05dbe34 commit 60127c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Lib/test/test_peepholer.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,12 @@ def f():
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()

0 comments on commit 60127c0

Please sign in to comment.