-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
stdout and stderr double-encoded in junitxml #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Original comment by Jason R. Coombs (BitBucket: jaraco, GitHub: jaraco): After a bit of investigation, it appears the problem is due to encoding in two places. When the content is added to the tag, in LogXML.append_failure, Removing the call to Note that the test in the pull request doesn't pass by removing bin_xml_escape because the apostrophes aren't escaped (probably because they don't need to be in XML text), so the test may need to be updated. Please let me know if there's more I can do to expedite a fix for this issue. Regards - Jason |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): i think i introduced that bug when fixing errors about incorrectly handling some binary data im under the impression that returning a py.xml.raw might be needed |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): fix issue #178 and extend the failure escape test |
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:
The stderr stream for that looks something like:
Notice that the tickmarks are being escaped for XML (to ') and then again the ampersand is getting escaped to '.
The text was updated successfully, but these errors were encountered: