ElementTree._escape_cdata isn't reliable across Python versions.
It also does not work as desired. Revert "Merge pull request #254 from barreverte/develop" This reverts commit23750357e2
, reversing changes made to07284f380f
.
This commit is contained in:
@@ -34,7 +34,8 @@ class TestToString(SleekTest):
|
||||
desired = """<foo bar="baz">'Hi"""
|
||||
desired += """ & welcome!'</foo>"""
|
||||
|
||||
self.assertEqual(escaped, desired)
|
||||
self.failUnless(escaped == desired,
|
||||
"XML escaping did not work: %s." % escaped)
|
||||
|
||||
def testEmptyElement(self):
|
||||
"""Test converting an empty element to a string."""
|
||||
|
Reference in New Issue
Block a user