diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py index 7ad28cdfa..bc4c72590 100644 --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -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 ))