diff options
Diffstat (limited to 'tests/micropython/heapalloc_int_from_bytes.py')
-rw-r--r-- | tests/micropython/heapalloc_int_from_bytes.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/micropython/heapalloc_int_from_bytes.py b/tests/micropython/heapalloc_int_from_bytes.py index 5fe50443a..3310ea95d 100644 --- a/tests/micropython/heapalloc_int_from_bytes.py +++ b/tests/micropython/heapalloc_int_from_bytes.py @@ -1,6 +1,13 @@ # Test that int.from_bytes() for small number of bytes generates # small int. -import micropython + +try: + import micropython + + micropython.heap_lock +except (ImportError, AttributeError): + print("SKIP") + raise SystemExit micropython.heap_lock() print(int.from_bytes(b"1", "little")) |