Merge pull request #17 from arthur-debert/ascii-blowup-results

Fixed result when failure message has non ascii text
This commit is contained in:
Camilo Nova 2015-01-21 16:47:55 -05:00
commit 9d6f93ac9a

View file

@ -203,7 +203,7 @@ class XMLTestResult(TextTestResult):
'message': smart_text(test_info.err[1])
}))
document.characters(self._exc_info_to_string(
test_info.err, test_info.test_method))
test_info.err, test_info.test_method).decode('utf-8'))
document.endElement('failure')
elif test_info.result == \
TestInfo.RESULT.UNEXPECTED_SUCCESS: