tests/basic: Make various tests skippable.
This commit is contained in:
11
tests/basics/bytes_construct_array.py
Normal file
11
tests/basics/bytes_construct_array.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# test construction of bytes from different objects
|
||||
try:
|
||||
from array import array
|
||||
except ImportError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
# arrays
|
||||
print(bytes(array('b', [1, 2])))
|
||||
print(bytes(array('h', [0x101, 0x202])))
|
||||
Reference in New Issue
Block a user