From 580c8525f0c1cec29d0b4fc5943e476af9c33863 Mon Sep 17 00:00:00 2001 From: WooParadog Date: Wed, 23 Apr 2014 15:38:40 +0800 Subject: [PATCH] Use processced skipreason for generating skip Junit node --- _pytest/junitxml.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ))