Files
micropython/tests/cmdline/cmd_sys_exit_0.py
Andrew Leech 5b3c928f53 unix/main: Use standard pyexec REPL for unix and windows ports.
This improves REPL usage consistency across ports, by utilizing the pyexec
code for the unix REPL.

Only enabled when MICROPY_USE_READLINE == 1 (the default).

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
2025-11-22 00:00:07 +11:00

6 lines
74 B
Python

# cmdline:
# test sys.exit(0) - success exit code
import sys
sys.exit(0)