diff options
author | Damien George <damien@micropython.org> | 2021-05-20 10:02:57 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-05-26 16:33:18 +1000 |
commit | dc86e044761a132ddd7026f0f9555f958ba8046a (patch) | |
tree | fd1af22fda4afd5a364aff29013ac9af57b3bd92 /tests/float/bytearray_construct_endian.py | |
parent | e7c0a8bca31063c295afdaf8e49c8ab24b70a90d (diff) | |
download | micropython-dc86e044761a132ddd7026f0f9555f958ba8046a.tar.gz micropython-dc86e044761a132ddd7026f0f9555f958ba8046a.zip |
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/float/bytearray_construct_endian.py')
-rw-r--r-- | tests/float/bytearray_construct_endian.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/float/bytearray_construct_endian.py b/tests/float/bytearray_construct_endian.py new file mode 100644 index 0000000000..257d37d1be --- /dev/null +++ b/tests/float/bytearray_construct_endian.py @@ -0,0 +1,12 @@ +# test construction of bytearray from array with float type + +try: + from uarray import array +except ImportError: + try: + from array import array + except ImportError: + print("SKIP") + raise SystemExit + +print(bytearray(array("f", [1, 2.3]))) |