Bug fix to make test suite compatible with Python 3.x

See https://travis-ci.org/xolox/python-vcs-repo-mgr/jobs/35273703