Skip to content

Commit

Permalink
Use processced skipreason for generating skip Junit node
Browse files Browse the repository at this point in the history
  • Loading branch information
wooparadog committed Apr 23, 2014
1 parent d6010aa commit 580c852
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _pytest/junitxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ def append_skipped(self, report):
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
))
Expand Down

0 comments on commit 580c852

Please sign in to comment.