This commit is contained in:
Kovid Goyal 2016-06-24 06:29:21 +05:30
parent 6a186122c3
commit d0fc25ba63

View File

@ -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,