python-lxml/python-lxml-assert.patch
Tomáš Chvátal c15b50f02a - Version update to 4.2.0:
* GH#255: ``SelectElement.value`` returns more standard-compliant and
    browser-like defaults for non-multi-selects.  If no option is selected, the
    value of the first option is returned (instead of None).  If multiple options
    are selected, the value of the last one is returned (instead of that of the
    first one).  If no options are present (not standard-compliant)
    ``SelectElement.value`` still returns ``None``.
  * GH#261: The ``HTMLParser()`` now supports the ``huge_tree`` option.
    Patch by stranac.
  * LP#1551797: Some XSLT messages were not captured by the transform error log.
  * LP#1737825: Crash at shutdown after an interrupted iterparse run with XMLSchema
    validation.
- Add patch python-lxml-assert.patch to pass test fail on threading

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=105
2018-03-19 14:13:54 +00:00

14 lines
625 B
Diff

Index: lxml-4.2.0/src/lxml/tests/test_threading.py
===================================================================
--- lxml-4.2.0.orig/src/lxml/tests/test_threading.py
+++ lxml-4.2.0/src/lxml/tests/test_threading.py
@@ -153,7 +153,7 @@ 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.assertEqual(2, len(log))
for error in log:
self.assertTrue(':ERROR:XSLT:' in str(error))
last_log = log