fix for failing test on python 2.6