py/mpconfig: Include micropython module in core features.

This excludes it from the minimal builds.

Signed-off-by: Laurens Valk <laurens@pybricks.com>
This commit is contained in:
Laurens Valk 2022-11-29 12:31:09 +01:00 committed by Damien George
parent f724d90e6c
commit 632d43ed44
2 changed files with 6 additions and 2 deletions

View File

@ -1313,7 +1313,7 @@ typedef double mp_float_t;
// Whether to provide "micropython" module
#ifndef MICROPY_PY_MICROPYTHON
#define MICROPY_PY_MICROPYTHON (1)
#define MICROPY_PY_MICROPYTHON (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES)
#endif
// Whether to provide "gc" module

View File

@ -1,6 +1,10 @@
# Test creating small integers without heap allocation in nan-boxing mode.
import micropython
try:
import micropython
except ImportError:
print("SKIP")
raise SystemExit
try:
# Test for nan-box build by allocating a float while heap is locked.