mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
tests: Make float and framebuf tests skip or run on big-endian archs.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
12
tests/float/bytes_construct_endian.py
Normal file
12
tests/float/bytes_construct_endian.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# test construction of bytes from array with float type
|
||||
|
||||
try:
|
||||
from uarray import array
|
||||
except ImportError:
|
||||
try:
|
||||
from array import array
|
||||
except ImportError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
print(bytes(array("f", [1, 2.3])))
|
||||
Reference in New Issue
Block a user