Fix failing test on Python 2.6.x