diff --git a/pytest_html/plugin.py b/pytest_html/plugin.py index 2c7730db..06deb0ff 100644 --- a/pytest_html/plugin.py +++ b/pytest_html/plugin.py @@ -146,6 +146,8 @@ def _appendrow(self, result, report): additional_html.append(log) test_id = report.nodeid + if not PY3: + test_id = unicode(test_id, 'utf-8') if report.when != 'call': test_id = '::'.join([report.nodeid, report.when])