Fix test to run on Python 2.6.