summaryrefslogtreecommitdiff
path: root/bs4/tests/test_html5lib.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2013-05-20 09:40:13 -0400
committerLeonard Richardson <leonardr@segfault.org>2013-05-20 09:40:13 -0400
commit9f370bad91d80570a57156f53c6a9efc918ff90f (patch)
tree0484f795e984ef8a19cb88c772fee1d2f30f94ef /bs4/tests/test_html5lib.py
parentdae9722244850754533647c77f418f626ba05124 (diff)
html5lib now supports Python 3. Fixed some Python 2-specific
code in the html5lib test suite. [bug=1181624]
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 0e1c1d8..2a3b41e 100644
--- a/bs4/tests/test_html5lib.py
+++ b/bs4/tests/test_html5lib.py
@@ -69,4 +69,4 @@ class HTML5LibBuilderSmokeTest(SoupTest, HTML5TreeBuilderSmokeTest):
</html>'''
soup = self.soup(markup)
# Verify that we can reach the <p> tag; this means the tree is connected.
- self.assertEquals("<p>foo</p>", soup.p.encode())
+ self.assertEqual(b"<p>foo</p>", soup.p.encode())