summaryrefslogtreecommitdiff
path: root/bs4/tests/test_html5lib.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_html5lib.py
parent4e502b398eddc677567538d5356a855137e155f7 (diff)
On output, always convert special XML characters to entities.
Diffstat (limited to 'bs4/tests/test_html5lib.py')
-rw-r--r--bs4/tests/test_html5lib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/tests/test_html5lib.py b/bs4/tests/test_html5lib.py
index b136ba0..5b1d1e4 100644
--- a/bs4/tests/test_html5lib.py
+++ b/bs4/tests/test_html5lib.py
@@ -149,7 +149,7 @@ class TestHTML5BuilderInvalidMarkup(TestLXMLBuilderInvalidMarkup):
def test_incomplete_declaration(self):
# An incomplete declaration is treated as a comment.
markup = 'a<!b <p>c'
- self.assertSoupEquals(markup, "a<!--b <p-->c")
+ self.assertSoupEquals(markup, "a<!--b &lt;p-->c")
# Let's spell that out a little more explicitly.
soup = self.soup(markup)