From 983144404b6526c22e5c4224807ea4214e11e248 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 9 Mar 2017 00:07:19 +0100 Subject: tests/basic: Make various tests skippable. --- tests/basics/bytes_add_array.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/basics/bytes_add_array.py (limited to 'tests/basics/bytes_add_array.py') diff --git a/tests/basics/bytes_add_array.py b/tests/basics/bytes_add_array.py new file mode 100644 index 000000000..2b8cbccef --- /dev/null +++ b/tests/basics/bytes_add_array.py @@ -0,0 +1,12 @@ +# test bytes + other +try: + import array +except ImportError: + import sys + print("SKIP") + sys.exit() + +# should be byteorder-neutral +print(b"123" + array.array('h', [0x1515])) + +print(b"\x01\x02" + array.array('b', [1, 2])) -- cgit v1.2.3