Hello community,

here is the log from the commit of package python-lxml for openSUSE:Factory 
checked in at 2018-09-04 22:52:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lxml (Old)
 and      /work/SRC/openSUSE:Factory/.python-lxml.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-lxml"

Tue Sep  4 22:52:17 2018 rev:67 rq:632907 version:4.2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-lxml/python-lxml.changes  2018-08-10 
09:47:21.046035527 +0200
+++ /work/SRC/openSUSE:Factory/.python-lxml.new/python-lxml.changes     
2018-09-04 22:52:18.640208550 +0200
@@ -1,0 +2,7 @@
+Mon Sep  3 14:34:43 UTC 2018 - comur...@suse.com
+
+- Fix threading tests patch for 42.3
+  * Add 0001-Make-test-more-resilient-against-changes-in-latest-l.patch
+  * Remove python-lxml-assert.patch
+
+-------------------------------------------------------------------

Old:
----
  python-lxml-assert.patch

New:
----
  0001-Make-test-more-resilient-against-changes-in-latest-l.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-lxml.spec ++++++
--- /var/tmp/diff_new_pack.PZJvAw/_old  2018-09-04 22:52:20.684215556 +0200
+++ /var/tmp/diff_new_pack.PZJvAw/_new  2018-09-04 22:52:20.684215556 +0200
@@ -26,7 +26,7 @@
 Url:            http://lxml.de/
 Source:         
https://files.pythonhosted.org/packages/source/l/lxml/lxml-%{version}.tar.gz
 Source1:        http://lxml.de/lxmldoc-%{version}.pdf
-Patch0:         python-lxml-assert.patch
+Patch0:         0001-Make-test-more-resilient-against-changes-in-latest-l.patch
 BuildRequires:  %{python_module Cython >= 0.26.1}
 BuildRequires:  %{python_module cssselect >= 0.9.1}
 BuildRequires:  %{python_module devel}

++++++ 0001-Make-test-more-resilient-against-changes-in-latest-l.patch ++++++
>From acef361ca80ff9afd828d91c98ea91c92f9d09af Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan...@behnel.de>
Date: Sat, 4 Aug 2018 12:56:14 +0200
Subject: [PATCH] Make test more resilient against changes in latest libxslt
 releases.

---
 src/lxml/tests/test_threading.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lxml/tests/test_threading.py b/src/lxml/tests/test_threading.py
index 8948c3ec..5ede3f80 100644
--- a/src/lxml/tests/test_threading.py
+++ b/src/lxml/tests/test_threading.py
@@ -130,7 +130,7 @@ class ThreadingTestCase(HelperTestCase):
     <xsl:template match="tag" />
     <!-- extend time for parsing + transform -->
 ''' + '\n'.join('<xsl:template match="tag%x" />' % i for i in range(200)) + '''
-    <xsl:foo />
+    <xsl:UnExpectedElement />
 </xsl:stylesheet>''')
         self.assertRaises(etree.XSLTParseError,
                           etree.XSLT, style)
@@ -153,9 +153,10 @@ class ThreadingTestCase(HelperTestCase):
             self.assertTrue(len(log))
             if last_log is not None:
                 self.assertEqual(len(last_log), len(log))
-            self.assertEqual(4, len(log))
+            self.assertTrue(len(log) >= 2, len(log))
             for error in log:
-                self.assertTrue(':ERROR:XSLT:' in str(error))
+                self.assertTrue(':ERROR:XSLT:' in str(error), str(error))
+            self.assertTrue(any('UnExpectedElement' in str(error) for error in 
log), log)
             last_log = log
 
     def test_thread_xslt_apply_error_log(self):
-- 
2.18.0


Reply via email to