Fix for failing test under python2.6.