tests/basics/sys1.py: Add test for calling sys.exit() without any args.
This commit is contained in:
parent
5ea38e4d74
commit
c2bb451908
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,11 @@ try:
|
||||||
except SystemExit as e:
|
except SystemExit as e:
|
||||||
print("SystemExit", e.args)
|
print("SystemExit", e.args)
|
||||||
|
|
||||||
|
try:
|
||||||
|
sys.exit()
|
||||||
|
except SystemExit as e:
|
||||||
|
print("SystemExit", e.args)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.exit(42)
|
sys.exit(42)
|
||||||
except SystemExit as e:
|
except SystemExit as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue