From 14d23b0d09a6a79097ff7007e30e7b4720151400 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sat, 8 Jul 2023 10:56:18 -0400 Subject: [PATCH] import or skip lxml --- tests/test_serialization.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 3f32b006..76302d44 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -158,5 +158,6 @@ def _sort_elements(element: ET.Element, recursive: bool = True) -> None: def test_canonicalize() -> None: + pytest.importorskip("lxml") ome = from_xml(DATA / "example.ome.xml", validate=True) _ = to_xml(ome, validate=True, canonicalize=True)