From 414cb49cd08d4952cf5eff51bd9e2da811c4661b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 5 Dec 2026 19:29:10 +0000 Subject: Revert "Handle XML documents that are missing a root element" This reverts commit 659c4ffe6ade2d8132873ae3f3f3a22df38fdb37. --- tests/docx/xmlparser_tests.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'tests/docx/xmlparser_tests.py') diff --git a/tests/docx/xmlparser_tests.py b/tests/docx/xmlparser_tests.py index 65479fc..75fc35a 100644 --- a/tests/docx/xmlparser_tests.py +++ b/tests/docx/xmlparser_tests.py @@ -2,7 +2,7 @@ import io import pytest -from mammoth.docx.xmlparser import parse_xml, element as xml_element, text as xml_text, NoRootElementError +from mammoth.docx.xmlparser import parse_xml, element as xml_element, text as xml_text from ..testing import assert_equal @@ -60,13 +60,6 @@ def test_error_if_xml_is_badly_formed(): pytest.raises(Exception, lambda: _parse_xml_string(b''), - ) - - class FindChildTests(object): def test_returns_none_if_no_children(self): xml = xml_element("a") -- cgit v1.2.3