summaryrefslogtreecommitdiff
path: root/bs4/tests/test_lxml.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-02-07 13:48:06 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-02-07 13:48:06 -0500
commit1cc507c9ac0154904a65f7352736cb665686e4a4 (patch)
treec454bcae32c7a02a1cf740ff41631d470d490fea /bs4/tests/test_lxml.py
parent4e502b398eddc677567538d5356a855137e155f7 (diff)
On output, always convert special XML characters to entities.
Diffstat (limited to 'bs4/tests/test_lxml.py')
-rw-r--r--bs4/tests/test_lxml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/tests/test_lxml.py b/bs4/tests/test_lxml.py
index d1f4276..0adef20 100644
--- a/bs4/tests/test_lxml.py
+++ b/bs4/tests/test_lxml.py
@@ -165,7 +165,7 @@ class TestLXMLBuilder(SoupTest):
# Both XML and HTML entities are converted to Unicode characters
# during parsing.
text = "<p>&lt;&lt;sacr&eacute;&#32;bleu!&gt;&gt;</p>"
- expected = u"<p><<sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>></p>"
+ expected = u"<p>&lt;&lt;sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!&gt;&gt;</p>"
self.assertSoupEquals(text, expected)
def test_smart_quotes_converted_on_the_way_in(self):