mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
tests/basic: Make various tests skippable.
This commit is contained in:
12
tests/basics/bytes_add_array.py
Normal file
12
tests/basics/bytes_add_array.py
Normal file
@@ -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]))
|
||||
Reference in New Issue
Block a user