8000 Doh! forgot to fix unit tests too (re doctype tokens in the Genshi tr… · awesome-python/html5lib-python@8cdb012 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8cdb012

Browse files
committed
Doh! forgot to fix unit tests too (re doctype tokens in the Genshi tree walker)
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40790
1 parent 6a496ed commit 8cdb012

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_treewalkers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import StringIO
44
import unittest
55

6+
from support import html5lib_test_files
7+
68
#RELEASE remove
79
import html5parser
810
#Run tests over all treewalkers/treebuilders pairs
@@ -19,7 +21,6 @@
1921
#from html5lib.filters.lint import Filter as LintFilter, LintError
2022
#END RELEASE
2123

22-
from support import html5lib_test_files
2324
from test_parser import parseTestcase
2425

2526
def PullDOMAdapter(node):
@@ -138,7 +139,7 @@ def GenshiAdapter(tree):
138139
yield COMMENT, token["data"], (None, -1, -1)
139140

140141
elif type == "Doctype":
141-
yield DOCTYPE, token["name"], (None, -1, -1)
142+
yield DOCTYPE, (token["name"], None, None), (None, -1, -1)
142143

143144
else:
144145
pass # FIXME: What to do?

0 commit comments

Comments
 (0)
0