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/office_xml_tests.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/docx/office_xml_tests.py') diff --git a/tests/docx/office_xml_tests.py b/tests/docx/office_xml_tests.py index 34566ff..05897db 100644 --- a/tests/docx/office_xml_tests.py +++ b/tests/docx/office_xml_tests.py @@ -2,18 +2,10 @@ from __future__ import unicode_literals import io -import pytest - from mammoth.docx import xmlparser as xml, office_xml from ..testing import assert_equal -def test_when_document_is_missing_root_element_then_none_is_returned(): - xml_string = '' - - pytest.raises(xml.NoRootElementError, lambda: office_xml.read(io.StringIO(xml_string))) - - class AlternateContentTests(object): def test_when_fallback_is_present_then_fallback_is_read(self): xml_string = ( -- cgit v1.2.3