mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
6a186122c3
commit
d0fc25ba63
@ -147,6 +147,7 @@ def comments(test, parse_function):
|
||||
markup = '<html><!-- -- ---><body/></html>'
|
||||
root = parse_function(markup)
|
||||
test.assertEqual(len(XPath('//h:body')(root)), 1, 'Failed to parse with comment containing dashes')
|
||||
test.assertEqual(len(tuple(root.iterdescendants(etree.Comment))), 1)
|
||||
|
||||
basic_checks = (nonvoid_cdata_elements, namespaces, space_characters,
|
||||
case_insensitive_element_names, entities, comments,
|
||||
|
Loading…
x
Reference in New Issue
Block a user