compatibility layer for tests with python 2.6