summaryrefslogtreecommitdiff
path: root/tests/test_tostring.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-09-12 10:39:10 -0700
committerLance Stout <lancestout@gmail.com>2013-09-12 10:39:10 -0700
commitad7a57103d2d85a198bc0bf2d30d24a86ca17958 (patch)
treedbb13a7e3615f6aa6dda7b1a90eecb15f7ac6762 /tests/test_tostring.py
parent19b24b276d2d4591f5ee852d98966518d46ce7d3 (diff)
downloadslixmpp-ad7a57103d2d85a198bc0bf2d30d24a86ca17958.tar.gz
slixmpp-ad7a57103d2d85a198bc0bf2d30d24a86ca17958.tar.bz2
slixmpp-ad7a57103d2d85a198bc0bf2d30d24a86ca17958.tar.xz
slixmpp-ad7a57103d2d85a198bc0bf2d30d24a86ca17958.zip
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 commit 23750357e21ce1e22445b2e702bdd4efb77f2369, reversing changes made to 07284f380fa0a893a5ef56774fcef71a47851668.
Diffstat (limited to 'tests/test_tostring.py')
-rw-r--r--tests/test_tostring.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_tostring.py b/tests/test_tostring.py
index be11ab03..e6148533 100644
--- a/tests/test_tostring.py
+++ b/tests/test_tostring.py
@@ -34,7 +34,8 @@ class TestToString(SleekTest):
desired = """&lt;foo bar=&quot;baz&quot;&gt;&apos;Hi"""
desired += """ &amp; welcome!&apos;&lt;/foo&gt;"""
- 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."""