Make the test suite's major version number check compatible with python <= 2.6.