Use processced skipreason for generating skip Junit node

This commit is contained in:
WooParadog 2014-04-23 15:38:40 +08:00
parent d6010aa0c9
commit 580c8525f0
1 changed files with 1 additions and 2 deletions

View File

@ -162,9 +162,8 @@ 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,
Junit.skipped("%s:%s: %s" % (filename, lineno, skipreason),
type="pytest.skip",
message=skipreason
))