Files
Core2forAWS-MicroPython/tests/basics/bytes_add_array.py
T

12 lines
223 B
Python
Raw Normal View History

2017-03-09 00:07:19 +01:00
# test bytes + other
try:
import array
except ImportError:
print("SKIP")
raise SystemExit
2017-03-09 00:07:19 +01:00
# should be byteorder-neutral
print(b"123" + array.array('h', [0x1515]))
print(b"\x01\x02" + array.array('b', [1, 2]))