tests/basics/sys1.py: Add test for calling sys.exit() without any args.
This commit is contained in:
parent
5ea38e4d74
commit
c2bb451908
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue