From baabd43c9c6c7f813092ae82a1bd5b059bbe219a Mon Sep 17 00:00:00 2001 From: Dave Hunt Date: Wed, 27 Jan 2016 11:32:17 +0000 Subject: [PATCH] Allow unicode in test names --- pytest_html/plugin.py | 2 ++ 1 file changed, 2 insertions(+) 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])