Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-lxml for openSUSE:Factory checked in at 2021-06-04 22:42:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-lxml (Old) and /work/SRC/openSUSE:Factory/.python-lxml.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-lxml" Fri Jun 4 22:42:23 2021 rev:84 rq:896742 version:4.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-lxml/python-lxml.changes 2021-04-08 21:02:25.521917476 +0200 +++ /work/SRC/openSUSE:Factory/.python-lxml.new.1898/python-lxml.changes 2021-06-04 22:42:26.183054653 +0200 @@ -1,0 +2,6 @@ +Tue Jun 1 11:29:24 UTC 2021 - Pedro Monreal <pmonr...@suse.com> + +- Adapt test_etree.py to a behavioural change in libxml2 2.9.11+ + * Add python-lxml-test_etree.patch + +------------------------------------------------------------------- New: ---- python-lxml-test_etree.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-lxml.spec ++++++ --- /var/tmp/diff_new_pack.Ym4O7I/_old 2021-06-04 22:42:27.055055615 +0200 +++ /var/tmp/diff_new_pack.Ym4O7I/_new 2021-06-04 22:42:27.059055620 +0200 @@ -26,6 +26,8 @@ URL: https://lxml.de/ Source0: https://files.pythonhosted.org/packages/source/l/lxml/lxml-%{version}.tar.gz Source1: https://lxml.de/lxmldoc-4.5.2.pdf +# PATCH-FIX-UPSTREAM Adapt test_etree.py to a behavioural change in libxml2 2.9.11+ +Patch0: python-lxml-test_etree.patch BuildRequires: %{python_module Cython >= 0.29.7} BuildRequires: %{python_module cssselect >= 0.9.1} BuildRequires: %{python_module setuptools >= 18.0.1} @@ -70,6 +72,7 @@ %prep %setup -q -n lxml-%{version} +%patch0 -p1 cp %{SOURCE1} . # remove generated files ++++++ python-lxml-test_etree.patch ++++++ >From 852ed1092bd80b6b9a51db24371047ec88843031 Mon Sep 17 00:00:00 2001 From: Stefan Behnel <stefan...@behnel.de> Date: Tue, 18 May 2021 22:02:02 +0200 Subject: [PATCH] Adapt a test to a behavioural change in libxml2 2.9.11+. --- src/lxml/tests/test_etree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py index 9cf70604b..42613dcbe 100644 --- a/src/lxml/tests/test_etree.py +++ b/src/lxml/tests/test_etree.py @@ -3036,7 +3036,10 @@ def test_subelement_nsmap(self): def test_html_prefix_nsmap(self): etree = self.etree el = etree.HTML('<hha:page-description>aa</hha:page-description>').find('.//page-description') - self.assertEqual({'hha': None}, el.nsmap) + if etree.LIBXML_VERSION < (2, 9, 11): + self.assertEqual({'hha': None}, el.nsmap) + else: + self.assertEqual({}, el.nsmap) def test_getchildren(self): Element = self.etree.Element