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

@@ -22,4 +22,4 @@ def test(a):
test(array("f"))
test(array("d"))
print("{:.4f}".format(array("f", b"\xcc\xcc\xcc=")[0]))
print("{:.4f}".format(array("f", bytes(array("I", [0x3DCCCCCC])))[0]))