summaryrefslogtreecommitdiff
path: root/bs4/tests/test_htmlparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/tests/test_htmlparser.py')
-rw-r--r--bs4/tests/test_htmlparser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bs4/tests/test_htmlparser.py b/bs4/tests/test_htmlparser.py
index d2db38e..8aa2471 100644
--- a/bs4/tests/test_htmlparser.py
+++ b/bs4/tests/test_htmlparser.py
@@ -44,6 +44,10 @@ class TestHTMLParserTreeBuilder(TestLXMLBuilder):
self.assertSoupEquals(
"<p>Foo<br/>bar</p>", "<p>Foo<br />bar</p>")
+ def test_hex_entities_in_text(self):
+ # XXX This tests a workaround for a bug in HTMLParser.
+ self.assertSoupEquals("&#xf1;", u"\xf1")
+
def test_entities_in_attribute_values_converted_during_parsing(self):
# The numeric entity isn't recognized without the closing