From 7fa2e6e57e96a79af8ef743c5e141e3e07191ce1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 20 Dec 2018 13:38:09 +0300 Subject: [PATCH] tests/sys1: Add explicit test for wrapping sys.exit() in finally. It's implicitly tested by other cases, but let's have an explicit one. Change-Id: I511b65440e07f18533e44bbeed06ae1e379c6cda --- tests/basics/sys1.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/basics/sys1.py b/tests/basics/sys1.py index 0d74a1292b..53d1a1aa91 100644 --- a/tests/basics/sys1.py +++ b/tests/basics/sys1.py @@ -28,3 +28,8 @@ sys.exit(42) except SystemExit as e: print("SystemExit", e.args) + +try: + sys.exit(0) +finally: + print("finally")