Compatibility of unit tests with python 2.6.6