Use StringIO.StringIO in Python 2.7
Use StringIO.StringIO in Python 2.7

traceback.print_exc() will write bytes, and io.StringIO only expects unicode

pytest-dev/plugincompat,pytest-dev/plugincompat,pytest-dev/plugincompat