Fix for testing with Python 2.6