Bugfix unit test

It was incompatible with python 2.6
Merge pull request #4611 from dballesteros7/unittest

Bugfix unit test for python 2.6 vs 2.7