Correct a bug that happen when running the tests with "python setup.py test" but not with nostests