This is also causing the following autopkgtest failures in both Ubuntu
19.10 and Debian:
======================================================================
FAIL: test_nested_namespaces (bs4.tests.test_lxml.LXMLXMLTreeBuilderSmokeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/bs4/testing.py", line 835, in
test_nested_namespaces
self.assertEqual(doc, soup.encode())
AssertionError: b'<?x[144 chars]xmlns="http://ns1/">\n<child
xmlns="http://ns2[96 chars]ent>' != b'<?x[144
chars]xmlns:="http://ns1/">\n<child xmlns:="http://n[99 chars]ent>'
======================================================================
FAIL: A real XHTML document should come out *exactly* the same as it went in.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/bs4/testing.py", line 824, in
test_real_xhtml_document
soup.encode("utf-8"), markup)
AssertionError: b'<?x[108
chars]xmlns:="http://www.w3.org/1999/xhtml">\n<head>[56 chars]tml>' !=
b'<?x[108 chars]xmlns="http://www.w3.org/1999/xhtml">\n<head><[55 chars]tml>'
----------------------------------------------------------------------
Ran 489 tests in 0.463s
FAILED (failures=2)
** Changed in: beautifulsoup
Status: New => Confirmed
** Also affects: beautifulsoup4 (Ubuntu)
Importance: Undecided
Status: New
** Changed in: beautifulsoup4 (Ubuntu)
Status: New => Triaged
** Changed in: beautifulsoup4 (Ubuntu)
Importance: Undecided => High
** Tags added: rls-ee-incoming
** Summary changed:
- xmlns attribute issue with XML parser
+ xmlns attribute issue with XML parser with lxml 4.4.0
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840141
Title:
xmlns attribute issue with XML parser with lxml 4.4.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/beautifulsoup/+bug/1840141/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs