Make tests work on Python 2.6.