fixing error that made test fail in python 2.6