This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients arturcz, eric.araujo, loewis, peter.otten, serhiy.storchaka
Date 2014-02-23.21:11:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393189910.77.0.121596892232.issue20714@psf.upfronthosting.co.za>
In-reply-to
Content
I fail to see the bug in Python. minidom is behaving correctly. The error is in xmlrunner, which does

  error_info = str(test_result.get_error_info())
  failureText = xml_document.createCDATASection(error_info)

This is incorrect - it would have to check that error_info does not contain ]]> (since CDATA sections must not contain ]]>). If it finds ]]> in the error_info, it would have to create two CDATA sections, e.g. one up to and including ]], and the second one starting at > (repeated if there is more than one occurrence of ]]> in error_info.

Alternatively, it should just create a text node, since writing a text node will properly escape all special characters in error_info.
History
Date User Action Args
2014-02-23 21:11:50loewissetrecipients: + loewis, peter.otten, eric.araujo, serhiy.storchaka, arturcz
2014-02-23 21:11:50loewissetmessageid: <1393189910.77.0.121596892232.issue20714@psf.upfronthosting.co.za>
2014-02-23 21:11:50loewislinkissue20714 messages
2014-02-23 21:11:50loewiscreate