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