From d6010aa0c9a9ff6984fbc4900c6110efa5ab32dd Mon Sep 17 00:00:00 2001 From: WooParadog Date: Wed, 23 Apr 2014 14:50:21 +0800 Subject: [PATCH] Also replace `report.longrepr` with `bin_xml_escape`ed skipreason --- _pytest/junitxml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py index c87e7f34f..7ad28cdfa 100644 --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -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",