tests/basics: Split out specific bytearray tests to separate files.

So they can be automatically skipped if bytearray is not enabled.
This commit is contained in:
Damien George
2019-10-29 21:24:51 +11:00
parent 6e9ba1cf4b
commit aeea204e98
8 changed files with 32 additions and 22 deletions

View File

@@ -1,9 +1,8 @@
# test construction of bytes from different objects
# tuple, list, bytearray
# tuple, list
print(bytes((1, 2)))
print(bytes([1, 2]))
print(bytes(bytearray(4)))
# constructor value out of range
try: