blob: 0f0a70eff1bf80758d59f4168e93fa25666b5bdc (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | # check that heap_lock/heap_unlock work as expected
import micropython
micropython.heap_lock()
try:
    print([])
except MemoryError:
    print('MemoryError')
micropython.heap_unlock()
print([])
 |