fix test in py2.6