diff options
author | Damien George <damien.p.george@gmail.com> | 2019-05-03 23:21:08 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-05-03 23:21:08 +1000 |
commit | c2bb4519085fff1a30605e3f672635c21a747ed8 (patch) | |
tree | bee54fe0058f76e80c0e762de98b32b3c12affe8 /tests/basics/sys1.py | |
parent | 5ea38e4d7485aca5ce4e74bff1785c0d8e41fa1c (diff) |
tests/basics/sys1.py: Add test for calling sys.exit() without any args.
Diffstat (limited to 'tests/basics/sys1.py')
-rw-r--r-- | tests/basics/sys1.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/sys1.py b/tests/basics/sys1.py index 0d74a1292..30e36f81a 100644 --- a/tests/basics/sys1.py +++ b/tests/basics/sys1.py @@ -25,6 +25,11 @@ except SystemExit as e: print("SystemExit", e.args) try: + sys.exit() +except SystemExit as e: + print("SystemExit", e.args) + +try: sys.exit(42) except SystemExit as e: print("SystemExit", e.args) |