A fix for a test for python 2.6