Skip to content

Commit 9a10a4c

Browse files
committed
Update tests.
Also add an assertion for symptom of html5lib#217 (without this the testsuite goes into an infinite loop; this doesn't fix the cause but it avoids the infinite loop happening!).
1 parent 383d1ee commit 9a10a4c

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.pytest.expect

43.4 KB
Binary file not shown.

html5lib/tests/testdata

Submodule testdata updated 94 files

html5lib/treewalkers/etree.py

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def getParentNode(self, node):
129129
if not parents:
130130
return parent
131131
else:
132+
assert list(parents[-1]).count(parent) == 1
132133
return parent, list(parents[-1]).index(parent), parents, None
133134

134135
return locals()

0 commit comments

Comments
 (0)