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:
Damien George
2021-05-20 10:02:57 +10:00
parent e7c0a8bca3
commit dc86e04476
5 changed files with 14 additions and 4 deletions

View 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])))