[TIP] invalid xml characters in junit output with pytest
Ronny.Pfannschmidt at gmx.de
Mon Feb 25 13:59:45 PST 2013
then the python xml parsers just take it fine,
and the files shouldnt contain those characters in raw, i wonder why
java parser fails on it that way
im still not sure how/if to filter out things best
please report a bug with full context on the site
On 02/25/2013 10:45 PM, Pella,Chris wrote:
> Hi Ronny,
> We're using 2.3.4.
>> -----Original Message-----
>> From: Ronny Pfannschmidt [mailto:Ronny.Pfannschmidt at gmx.de]
>> Sent: February-25-13 4:43 PM
>> To: Pella,Chris
>> Cc: testing-in-python at lists.idyll.org
>> Subject: Re: [TIP] invalid xml characters in junit output with pytest
>> Hi Chris,
>> what version of pytest (i fixed such an issue a while back)
>> -- Ronny
>> On 02/25/2013 05:01 PM, Pella,Chris wrote:
>>> We have a problem with a test we are running in Jenkins. We are
>>> wrapping a binary executable with pexpect as part of a test suite.
>>> When a failure occurs it looks like there are some escape characters
>>> e.g. 0x1b that are captured in the junit xml output:
>> ci.org/search?query=org.xml.sax.SAXParseException>: An invalid XML
>> character (Unicode: 0x1b) was found in the element content of the
>>> Consequently, Jenkins doesn't print the results for the test. I tried
>>> writing a python script to filter out the invalid xml but it doesn't
>>> seem to get executed before the Jenkins junit reporting executes.
>>> Is there a way to tell the pytest junit plugin to filter these characters?
> The information contained in this electronic mail transmission
> may be privileged and confidential, and therefore, protected
> from disclosure. If you have received this communication in
> error, please notify us immediately by replying to this
> message and deleting it from your computer without copying
> or disclosing it.
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
More information about the testing-in-python