summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_str.py
blob: 0df39d3c0c6abd31bb2fe880e6ca4f1929cc3c93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# String operations which don't require allocation
import micropython

micropython.heap_lock()

b"" + b""
b"" + b"1"
b"2" + b""

"" + ""
"" + "1"
"2" + ""

micropython.heap_unlock()