Mercurial > enso_core
changeset 36:e340384ccd0d
Fixed a failing unit test; for rationale, see the changelog for my previous commit.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 24 Feb 2008 12:55:10 -0600 |
parents | a0a492bc01e8 |
children | 013ae5136ce8 |
files | tests/test_xml_tools.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_xml_tools.py Sun Feb 24 12:51:02 2008 -0600 +++ b/tests/test_xml_tools.py Sun Feb 24 12:55:10 2008 -0600 @@ -50,6 +50,7 @@ xmlStr = u"<test>%s\u2026</test>" % chr( char ) xmlStr = xml_tools.removeInvalidControlCharacters( xmlStr ) self.assertEquals( xmlStr, u"<test>\u2026</test>" ) + xmlStr = xmlStr.encode( "ascii", "xmlcharrefreplace" ) xml.sax.parseString( xmlStr, handler ) def testEscapeXmlRemovesInvalidControlCharacters( self ):