Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/micropython/heapalloc_bytesio.py

19 lines
232 B
Python
Raw Normal View History

tests/micropython: Make uio-using tests skippable.
2017-03-09 10:26:31 +01:00
try:
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 16:57:45 +10:00
import io
tests/micropython: Make uio-using tests skippable.
2017-03-09 10:26:31 +01:00
except ImportError:
print("SKIP")
tests: Convert remaining "sys.exit()" to "raise SystemExit".
2017-06-10 20:14:16 +03:00
raise SystemExit
tests/micropython: Make uio-using tests skippable.
2017-03-09 10:26:31 +01:00
tests/heapalloc_bytesio: Test for BytesIO with preallocates space.
2017-02-02 00:38:38 +03:00
import micropython
data = b"1234" * 16
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 16:57:45 +10:00
buf = io.BytesIO(64)
tests/heapalloc_bytesio: Test for BytesIO with preallocates space.
2017-02-02 00:38:38 +03:00
micropython.heap_lock()
buf.write(data)
micropython.heap_unlock()
print(buf.getvalue())
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 149ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API