From dc86e044761a132ddd7026f0f9555f958ba8046a Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 20 May 2021 10:02:57 +1000 Subject: tests: Make float and framebuf tests skip or run on big-endian archs. Signed-off-by: Damien George --- tests/float/bytes_construct_endian.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/float/bytes_construct_endian.py (limited to 'tests/float/bytes_construct_endian.py') diff --git a/tests/float/bytes_construct_endian.py b/tests/float/bytes_construct_endian.py new file mode 100644 index 0000000000..208f56162f --- /dev/null +++ b/tests/float/bytes_construct_endian.py @@ -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]))) -- cgit v1.2.3