mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
tests/basics/sys1.py: Add test for calling sys.exit() without any args.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user