Commit b25b4841 by Petar Shomov

trying to utf-8 encode all possible unicode strings

parent e3340a3d
......@@ -63,11 +63,11 @@ def enable(filename=None):
tc.appendChild(skip)
if step.failed:
cdata = doc.createCDATASection(step.why.traceback)
cdata = doc.createCDATASection(step.why.traceback.encode('utf-8'))
failure = doc.createElement("failure")
if hasattr(step.why, 'cause'):
failure.setAttribute("message", step.why.cause)
failure.setAttribute("type", step.why.exception.__class__.__name__)
failure.setAttribute("message", step.why.cause.encode('utf-8'))
failure.setAttribute("type", step.why.exception.__class__.__name__.encode('utf-8'))
failure.appendChild(cdata)
tc.appendChild(failure)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment