8000 fixup! Add a test for HTMLParser(debug=True) · html5lib/html5lib-python@76bf242 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

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)
0