New issue 724: Unreadable stdout, stderr in Teamcity Build Log https://bitbucket.org/pytest-dev/pytest/issue/724/unreadable-stdout-stderr-in-teamcity-build
Evgeny Dontsov: We use Teamcity for run tests. I see in stdout and stderr unreadable unicode text: ---------------------------- Captured stdout setup ----------------------------- [17:11:37][Step 1/2] \u0412\u044b\u0431\u0440\u0430\u043d \u043f\u0430\u043a\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430: /home/teamcity/BuildAgent/work/8b6a84b329dfc16d/var/build/linux64-gcc-release/packages/ubuntu13.zip\n\u041d\u0430\u0439\u0434\u0435\u043d \u043f\u0430\u043a\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043 I think, the problem in capture.py file. I offer to add encoding of captured streams: def suspendcapture_item(self, item, when): out, err = self.suspendcapture() item.add_report_section(when, "out", **out.encode("utf8")**) item.add_report_section(when, "err", **err.encode("utf8")**) _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit