From d0fc25ba63c0e33040ece4288d78c98be6780f7f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Jun 2016 06:29:21 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/tests/parsing.py | 1 + 1 file changed, 1 insertion(+) 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,