tests/basics/sys1.py: Add test for calling sys.exit() without any args.

This commit is contained in:
Damien George 2019-05-03 23:21:08 +10:00
parent 5ea38e4d74
commit c2bb451908
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,11 @@ try:
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: