fix test under py3

a division return a float with py3