diff --git a/src/calibre/ebooks/oeb/polish/tests/parsing.py b/src/calibre/ebooks/oeb/polish/tests/parsing.py index 5c85508307..630a279bfb 100644 --- a/src/calibre/ebooks/oeb/polish/tests/parsing.py +++ b/src/calibre/ebooks/oeb/polish/tests/parsing.py @@ -147,6 +147,7 @@ def comments(test, parse_function): markup = '' 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,