- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
a3cfd37f02
commit
2b8de2b9df
13
python-lxml-assert.patch
Normal file
13
python-lxml-assert.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user