summaryrefslogtreecommitdiff
path: root/tests/micropython/import_mpy_native.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/import_mpy_native.py')
-rw-r--r--tests/micropython/import_mpy_native.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/micropython/import_mpy_native.py b/tests/micropython/import_mpy_native.py
index ac5e724e8..7a9bb8edd 100644
--- a/tests/micropython/import_mpy_native.py
+++ b/tests/micropython/import_mpy_native.py
@@ -53,11 +53,12 @@ class UserFS:
# these are the test .mpy files
-valid_header = bytes([77, 6, mpy_arch, 31])
+small_int_bits = 30
+valid_header = bytes([77, 6, mpy_arch, small_int_bits])
# fmt: off
user_files = {
# bad architecture (mpy_arch needed for sub-version)
- '/mod0.mpy': bytes([77, 6, 0xfc | mpy_arch, 31]),
+ '/mod0.mpy': bytes([77, 6, 0xfc | mpy_arch, small_int_bits]),
# test loading of viper and asm
'/mod1.mpy': valid_header + (