summaryrefslogtreecommitdiff
path: root/tests/extmod/framebuf_subclass.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-05-20 10:02:57 +1000
committerDamien George <damien@micropython.org>2021-05-26 16:33:18 +1000
commitdc86e044761a132ddd7026f0f9555f958ba8046a (patch)
treefd1af22fda4afd5a364aff29013ac9af57b3bd92 /tests/extmod/framebuf_subclass.py
parente7c0a8bca31063c295afdaf8e49c8ab24b70a90d (diff)
tests: Make float and framebuf tests skip or run on big-endian archs.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/framebuf_subclass.py')
-rw-r--r--tests/extmod/framebuf_subclass.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/extmod/framebuf_subclass.py b/tests/extmod/framebuf_subclass.py
index aad5d2a1e..a9e3c5efc 100644
--- a/tests/extmod/framebuf_subclass.py
+++ b/tests/extmod/framebuf_subclass.py
@@ -1,11 +1,16 @@
# test subclassing framebuf.FrameBuffer
try:
- import framebuf
+ import framebuf, usys
except ImportError:
print("SKIP")
raise SystemExit
+# This test and its .exp file is based on a little-endian architecture.
+if usys.byteorder != "little":
+ print("SKIP")
+ raise SystemExit
+
class FB(framebuf.FrameBuffer):
def __init__(self, n):