1# test handling of failed heap allocation with tuple
2
3import micropython
4
5# create tuple
6x = 1
7micropython.heap_lock()
8try:
9    (x,)
10except MemoryError:
11    print("MemoryError: tuple create")
12micropython.heap_unlock()
13