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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy