Fix issue with test on Python 2.6.