PythonExtra/tests/micropython/heapalloc_bytesio.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
234 B
Python
Raw Normal View History

try:
import uio
except ImportError:
print("SKIP")
raise SystemExit
import micropython
data = b"1234" * 16
buf = uio.BytesIO(64)
micropython.heap_lock()
buf.write(data)
micropython.heap_unlock()
print(buf.getvalue())