Fix test failure under Python 2.6.