Skip to content

Commit

Permalink
tests/sys1: Add explicit test for wrapping sys.exit() in finally.
Browse files Browse the repository at this point in the history
It's implicitly tested by other cases, but let's have an explicit one.

Change-Id: I511b65440e07f18533e44bbeed06ae1e379c6cda
  • Loading branch information
pfalcon committed Dec 20, 2018
1 parent 011b192 commit 7fa2e6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/basics/sys1.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@
sys.exit(42)
except SystemExit as e:
print("SystemExit", e.args)

try:
sys.exit(0)
finally:
print("finally")

0 comments on commit 7fa2e6e

Please sign in to comment.