In the test, added a fix for Python 2.6 which throws a TypeError rather than an
OverflowError.