serialisation with libxml2 2.9.12 returns extra closing tags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
See also: https:/
The linked bug suggests that lxml uses libxml2 incorrectly. Due to internal impl changes in 2.9.12, this results in garbage being printed after XML elements. This causes both real-life breakage and a lot of test failures like:
```
=======
FAIL: test_multiple_
-------
Traceback (most recent call last):
File "/usr/lib/
yield
File "/usr/lib/
self.
File "/usr/lib/
method()
File "/tmp/lxml/
self.
File "/usr/lib/
assertion_
File "/usr/lib/
raise self.failureExc
AssertionError: b'<b>B<
```
I can reproduce reliably with git master (1ea55a8550ca12
```
Python : sys.version_
lxml.etree : (4, 6, 3, 0)
libxml used : (2, 9, 12)
libxml compiled : (2, 9, 10)
libxslt used : (1, 1, 34)
libxslt compiled : (1, 1, 34)
```
Confirmed. Not something to change lightly, so I'd stick with 2.9.10 for now (and possibly another while).