Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 76bf242

Browse files
committedMay 22, 2016
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

Lines changed: 2 additions & 2 deletions
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)
Please sign in to comment.