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/float/bytearray_construct_endian.py

10 lines
193 B
Python
Raw Normal View History

tests: Separate out test cases that rely on float support to float/ dir.
2015-01-08 15:41:37 +00:00
# test construction of bytearray from array with float type
tests/float/byte*_construct: Skip on missing array module.
2017-04-03 00:17:43 +03: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
from array import array
tests/float/byte*_construct: Skip on missing array module.
2017-04-03 00:17:43 +03:00
except ImportError:
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
print("SKIP")
raise SystemExit
tests: Separate out test cases that rely on float support to float/ dir.
2015-01-08 15:41:37 +00:00
tests/float: Make bytes/bytearray construct tests work with obj repr C. 2.5 can be represented correctly in object representation C, but 2.3 cannot (it is slightly truncated). Signed-off-by: Damien George <damien@micropython.org>
2021-06-18 14:16:07 +10:00
print(bytearray(array("f", [1, 2.5])))
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 203ms Template: 1ms
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