Skip to content

stdout and stderr double-encoded in junitxml #178

Closed
@pytestbot

Description

@pytestbot

Originally reported by: Jason R. Coombs (BitBucket: jaraco, GitHub: jaraco)


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
{&amp;apos;exception&amp;apos;: [&amp;apos;ParseError: Both inline and named res
ponse lists were used for question lookahead\n&amp;apos;],
 &amp;apos;message&amp;apos;: [&amp;apos;ParseError: Both inline and named respo
nse lists were used for question lookahead\n&amp;apos;],
 &amp;apos;status&amp;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;.


Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions