fix tests on py2.6