tests: Add tests for SyntaxError, TypeError, and other missing things.

This is intended to improve coverage of the test suite.
This commit is contained in:
Damien George
2015-03-25 23:10:09 +00:00
parent 44f65c0e2f
commit 214179b430
24 changed files with 296 additions and 6 deletions

View File

@@ -11,3 +11,12 @@ print(i[-1])
print(len(array.array('h')))
print(array.array('i'))
# bool operator acting on arrays
print(bool(array.array('i')))
print(bool(array.array('i', [1])))
# bad typecode
try:
array.array('X')
except ValueError:
print("ValueError")