Skip to content

Commit 403c930

Browse files
committed
py/mpconfig.h: Enable MICROPY_PY_SYS_EXIT by default.
sys.exit() is an important function to terminate a program. In particular, the testsuite relies on it to skip tests (i.e. any other functionality may be disabled, but sys.exit() is required to at least report that properly).
1 parent ee7ad7e commit 403c930

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ typedef double mp_float_t;
867867

868868
// Whether to provide "sys.exit" function
869869
#ifndef MICROPY_PY_SYS_EXIT
870-
#define MICROPY_PY_SYS_EXIT (0)
870+
#define MICROPY_PY_SYS_EXIT (1)
871871
#endif
872872

873873
// Whether to provide sys.{stdin,stdout,stderr} objects

0 commit comments

Comments
 (0)