Skip to content

Commit

Permalink
py/mpconfig: Include micropython module in core features.
Browse files Browse the repository at this point in the history
This excludes it from the minimal builds.

Signed-off-by: Laurens Valk <[email protected]>
  • Loading branch information
laurensvalk authored and dpgeorge committed Dec 6, 2022
1 parent f724d90 commit 632d43e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py/mpconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion tests/basics/nanbox_smallint.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 632d43e

Please sign in to comment.