tests: Split byteorder-dependent tests to *_endian.py's.
This commit is contained in:
7
tests/basics/bytes_construct_endian.py
Normal file
7
tests/basics/bytes_construct_endian.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# test construction of bytes from different objects
|
||||
|
||||
from array import array
|
||||
|
||||
# arrays
|
||||
print(bytes(array('h', [1, 2])))
|
||||
print(bytes(array('I', [1, 2])))
|
||||
Reference in New Issue
Block a user