tests: fix text formatting of results on Python 2.7