tests: Improve coverage of array, range, dict, slice, exc, unicode.

This commit is contained in:
Damien George
2016-10-17 11:43:47 +11:00
parent 453c2e8f55
commit e9404e5f5f
9 changed files with 87 additions and 2 deletions

View File

@@ -21,6 +21,10 @@ print(array.array('i'))
print(bool(array.array('i')))
print(bool(array.array('i', [1])))
# containment, with incorrect type
print('12' in array.array('B', b'12'))
print([] in array.array('B', b'12'))
# bad typecode
try:
array.array('X')