tests: Split byteorder-dependent tests to *_endian.py's.

This commit is contained in:
Paul Sokolovsky
2015-08-30 00:30:28 +03:00
parent 0a8b5d160b
commit 58d9b10d70
8 changed files with 31 additions and 6 deletions

View 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])))