Skip to content

Commit 76bf242

Browse files
committed
fixup! Add a test for HTMLParser(debug=True)
1 parent 96643a2 commit 76bf242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html5lib/tests/test_parser2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import absolute_import, division, unicode_literals
22

3-
from six import PY2
3+
from six import PY2, text_type
44

55
import io
66

@@ -84,7 +84,7 @@ def test_debug_log():
8484

8585
if PY2:
8686
for i, log in enumerate(expected):
87-
log = [x.encode("ascii") if isinstance(x, unicode) else x for x in log]
87+
log = [x.encode("ascii") if isinstance(x, text_type) else x for x in log]
8888
expected[i] = tuple(log)
8989

9090
assert parser.log == expected

0 commit comments

Comments
 (0)