Fix test that fails on Python 2.6.