You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07: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