8000 Update test_treewalker now that TreeWalker are iterable objects · awesome-python/html5lib-python@9c6f0f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c6f0f8

Browse files
committed
Update test_treewalker now that TreeWalker are iterable objects
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40634
1 parent d95af0a commit 9c6f0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_treewalkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def runTest(self, innerHTML, input, expected, errors, treeClass):
184184
document = p.parse(StringIO.StringIO(input))
185185
document = treeClass.get("adapter", lambda x: x)(document)
186186
try:
187-
output = convertTokens(treeClass["walker"]().walk(document))
187+
output = convertTokens(treeClass["walker"](document))
188188
output = attrlist.sub(sortattrs, output)
189189
expected = attrlist.sub(sortattrs, expected)
190190
errorMsg = "\n".join(["\n\nExpected:", expected,

0 commit comments

Comments
 (0)
0