Fix test failure with Python 2.6