Skip to content

Commit 3bd2167

Browse files
committed
Endode string to UTF-8 for issue reportportal#11.
1 parent 32ea6c0 commit 3bd2167

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

robotframework_reportportal/model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ def __init__(self, name=None, parent_type="SUITE", attributes=None):
5454
self.status = attributes["status"]
5555

5656
def get_name(self):
57-
assignment = "{0} = ".format(", ".join(self.assign)) if self.assign else ""
57+
assign = ", ".join(self.assign)
58+
assignment = "{0} = ".format(assign) if assign else ""
5859
arguments = ", ".join(self.args)
5960
full_name = "{0}{1} ({2})".format(assignment, self.name, arguments)
60-
return full_name[:256]
61+
short_name = full_name[:256]
62+
return short_name.encode("utf8")
6163

6264
def get_type(self):
6365
if self.keyword_type == "Setup":

0 commit comments

Comments
 (0)