fixed unittest support python2.6