summaryrefslogtreecommitdiff
path: root/tests/basics/pkg3/mod1.py
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2025-11-05 16:35:31 +1100
committerDamien George <damien@micropython.org>2025-11-22 00:06:59 +1100
commit5f815b8a2d15a31298386d58eff5ac3c4d0fba92 (patch)
treea9613311fa438272f5a9fe443d909f4b6e8e3ce5 /tests/basics/pkg3/mod1.py
parentfd1ddc3f12b40e99faaf24dd099fd512fddcb62c (diff)
unix: Enable exit code handling for sys.exit().
Enable `MICROPY_PYEXEC_ENABLE_EXIT_CODE_HANDLING` to propagate `sys.exit()` exit codes properly. Update `convert_pyexec_result()` to handle return values where pyexec returns the exit code with `PYEXEC_FORCED_EXIT` flag set for `SystemExit`. Extract the exit code from the lower 8 bits when the flag is set, otherwise return as-is (0 for success, 1 for exception). Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Diffstat (limited to 'tests/basics/pkg3/mod1.py')
0 files changed, 0 insertions, 0 deletions