Fix test on py3k.