Also replace `report.longrepr` with `bin_xml_escape`ed skipreason
This commit is contained in:
parent
c47835f5ec
commit
d6010aa0c9
|
@ -162,6 +162,7 @@ class LogXML(object):
|
||||||
filename, lineno, skipreason = report.longrepr
|
filename, lineno, skipreason = report.longrepr
|
||||||
if skipreason.startswith("Skipped: "):
|
if skipreason.startswith("Skipped: "):
|
||||||
skipreason = bin_xml_escape(skipreason[9:])
|
skipreason = bin_xml_escape(skipreason[9:])
|
||||||
|
report.longrepr = filename, lineno, skipreason
|
||||||
self.append(
|
self.append(
|
||||||
Junit.skipped("%s:%s: %s" % report.longrepr,
|
Junit.skipped("%s:%s: %s" % report.longrepr,
|
||||||
type="pytest.skip",
|
type="pytest.skip",
|
||||||
|
|
Loading…
Reference in New Issue