python-lxml/skip-test-under-libxml2-2.10.4.patch
Markéta Machová 6aa062b559 Accepting request 1138782 from system:homeautomation:home-assistant:unstable
- update to version 5.1.0:
  Details on  https://lxml.de/5.1/changes-5.1.0.html
  removed merged patches:
  - ISO-Schematron-schema-optional.patch
  - remove-ISO-Schematron-schema.patch
  - close_file_before_test.patch

OBS-URL: https://build.opensuse.org/request/show/1138782
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=193
2024-01-15 13:54:41 +00:00

13 lines
593 B
Diff

Index: lxml-5.1.0/src/lxml/tests/test_etree.py
===================================================================
--- lxml-5.1.0.orig/src/lxml/tests/test_etree.py
+++ lxml-5.1.0/src/lxml/tests/test_etree.py
@@ -3256,6 +3256,7 @@ class ETreeOnlyTestCase(HelperTestCase):
self.assertEqual(re, e.nsmap)
self.assertEqual(r, s.nsmap)
+ @unittest.skipIf(etree.LIBXML_VERSION >= (2, 10, 4), "libxml2 regression ignores namespaces")
def test_html_prefix_nsmap(self):
etree = self.etree
el = etree.HTML('<hha:page-description>aa</hha:page-description>')