[py-dev] [hpk42/pytest] stdout and stderr double-encoded in junitxml (issue #178)

Jason R. Coombs issues-reply at bitbucket.org
Wed Aug 15 23:20:00 CEST 2012


--- you can reply above this line ---

New issue 178: stdout and stderr double-encoded in junitxml
https://bitbucket.org/hpk42/pytest/issue/178/stdout-and-stderr-double-encoded-in

Jason R. Coombs:

I'm finding that the junit XML generated by pytest 2.2.4 gets double-encoded output. For example, here's a snippet from one run:

{{{
<failure>... Error in parsing

gryphon/models/qsl.py:63: QSLError</failure><system-err>Message 1
{&apos;exception&apos;: [&apos;ParseError: Both inline and named res
ponse lists were used for question lookahead\n&apos;],
 &apos;message&apos;: [&apos;ParseError: Both inline and named respo
nse lists were used for question lookahead\n&apos;],
 &apos;status&apos;: 500,
...
}}}

The stderr stream for that looks something like:

{{{
Message 1
{'exception': ['ParseError: Both inline and named response lists were used for question lookahead\n'],
 'message': ['ParseError: Both inline and named response lists wer eused for the queston lookahead\n'],
 'status': 500,
}}}

Notice that the tickmarks are being escaped for XML (to ') and then again the ampersand is getting escaped to &apos;.


--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.



More information about the Pytest-dev mailing list