Fix test under Python 3.2