aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/office_xml_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-12-05 19:29:10 +0000
committerMichael Williamson <mike@zwobble.org>2026-12-05 19:29:10 +0000
commit414cb49cd08d4952cf5eff51bd9e2da811c4661b (patch)
treeb237b5f402d7f7f5f80c6c93bc1c3415e9cfe146 /tests/docx/office_xml_tests.py
parent3646167ab5685ea5a69de24442cf46e963bf7f41 (diff)
Revert "Handle XML documents that are missing a root element"
This reverts commit 659c4ffe6ade2d8132873ae3f3f3a22df38fdb37.
Diffstat (limited to 'tests/docx/office_xml_tests.py')
-rw-r--r--tests/docx/office_xml_tests.py8
1 files changed, 0 insertions, 8 deletions
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 = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'
-
- 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 = (