Also replace `report.longrepr` with `bin_xml_escape`ed skipreason

This commit is contained in:
WooParadog 2014-04-23 14:50:21 +08:00
parent c47835f5ec
commit d6010aa0c9
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ class LogXML(object):
filename, lineno, skipreason = report.longrepr
if skipreason.startswith("Skipped: "):
skipreason = bin_xml_escape(skipreason[9:])
report.longrepr = filename, lineno, skipreason
self.append(
Junit.skipped("%s:%s: %s" % report.longrepr,
type="pytest.skip",