Fixed test breakage under python 3 introduced by a480f8320a5b36501bfd0e8cd70b8dc04adf2d08.