Your message dated Wed, 21 Aug 2024 16:04:28 +0000
with message-id <[email protected]>
and subject line Bug#1079205: fixed in beautifulsoup4 4.12.3-3
has caused the Debian Bug report #1079205,
regarding beautifulsoup's autopkg tests fail with lxml 5.3.0
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1079205: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1079205
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:beautifulsoup4
Version: 4.12.3-2
Severity: serious
Tags: sid trixie
beautifulsoup's autopkg tests fail with lxml 5.3.0:
[...]
40s =================================== FAILURES
===================================
40s _________________ TestLXMLTreeBuilder.test_real_xhtml_document
_________________
40s
40s self = <bs4.tests.test_lxml.TestLXMLTreeBuilder object at
0x7f8c34ffa960>
40s
40s def test_real_xhtml_document(self):
40s """A real XHTML document should come out more or less
the same as it went in."""
40s markup = b"""<?xml version="1.0" encoding="utf-8"?>
40s <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
40s <html xmlns="http://www.w3.org/1999/xhtml">
40s <head><title>Hello.</title></head>
40s <body>Goodbye.</body>
40s </html>"""
40s with warnings.catch_warnings(record=True) as w:
40s soup = self.soup(markup)
40s assert soup.encode("utf-8").replace(b"\n", b"") ==
markup.replace(b"\n", b"")
40s
40s # No warning was issued about parsing an XML document
as HTML,
40s # because XHTML is both.
40s > assert w == []
40s E AssertionError
40s
40s /usr/lib/python3/dist-packages/bs4/tests/__init__.py:432:
AssertionError
40s ___________________ TestLXMLTreeBuilder.test_namespaced_html
___________________
40s
40s self = <bs4.tests.test_lxml.TestLXMLTreeBuilder object at
0x7f8c34ffaae0>
40s
40s def test_namespaced_html(self):
40s # When a namespaced XML document is parsed as HTML it should
40s # be treated as HTML with weird tag names.
40s markup = b"""<ns1:foo>content</ns1:foo><ns1:foo/><ns2:foo/>"""
40s with warnings.catch_warnings(record=True) as w:
40s soup = self.soup(markup)
40s
40s assert 2 == len(soup.find_all("ns1:foo"))
40s
40s # n.b. no "you're parsing XML as HTML" warning was given
40s # because there was no XML declaration.
40s > assert [] == w
40s E AssertionError
40s
40s /usr/lib/python3/dist-packages/bs4/tests/__init__.py:446:
AssertionError
40s ______________ TestLXMLTreeBuilder.test_detect_xml_parsed_as_html
______________
40s
40s self = <bs4.tests.test_lxml.TestLXMLTreeBuilder object at
0x7f8c34ffac60>
40s
40s def test_detect_xml_parsed_as_html(self):
40s # A warning is issued when parsing an XML document as HTML,
40s # but basic stuff should still work.
40s markup = b"""<?xml version="1.0"
encoding="utf-8"?><tag>string</tag>"""
40s with warnings.catch_warnings(record=True) as w:
40s soup = self.soup(markup)
40s assert soup.tag.string == 'string'
40s > [warning] = w
40s E ValueError: too many values to unpack (expected 1)
40s
40s /usr/lib/python3/dist-packages/bs4/tests/__init__.py:455: ValueError
40s =============================== warnings summary
===============================
40s test_fuzz.py: 1 warning
40s test_lxml.py: 91 warnings
40s test_tree.py: 1 warning
40s /usr/lib/python3/dist-packages/bs4/builder/_lxml.py:124:
DeprecationWarning: The 'strip_cdata' option of HTMLParser() has never
done anything and will eventually be removed.
40s parser = parser(
40s
40s -- Docs:
https://docs.pytest.org/en/stable/how-to/capture-warnings.html
40s =========================== short test summary info
============================
40s FAILED test_lxml.py::TestLXMLTreeBuilder::test_real_xhtml_document
- Assertio...
40s FAILED test_lxml.py::TestLXMLTreeBuilder::test_namespaced_html -
AssertionError
40s FAILED
test_lxml.py::TestLXMLTreeBuilder::test_detect_xml_parsed_as_html - Va...
40s ============ 3 failed, 654 passed, 7 skipped, 93 warnings in 2.36s
=============
--- End Message ---
--- Begin Message ---
Source: beautifulsoup4
Source-Version: 4.12.3-3
Done: Stefano Rivera <[email protected]>
We believe that the bug you reported is fixed in the latest version of
beautifulsoup4, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stefano Rivera <[email protected]> (supplier of updated beautifulsoup4
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 21 Aug 2024 17:41:44 +0200
Source: beautifulsoup4
Architecture: source
Version: 4.12.3-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Stefano Rivera <[email protected]>
Closes: 1079205
Changes:
beautifulsoup4 (4.12.3-3) unstable; urgency=medium
.
* Patch: Support for lxml 5.3.0. Avoid triggering a DeprecationWarning that
was failing tests. (Closes: #1079205)
Checksums-Sha1:
ea78f2d86b6da4674e38e38b19a9dfb9ae7aa017 1874 beautifulsoup4_4.12.3-3.dsc
e8981daf8d0874b11491be45d7c81bf194567b0c 9052
beautifulsoup4_4.12.3-3.debian.tar.xz
4377b143e95d9ae2ab8ad3e99b5ff33895f6af68 8377
beautifulsoup4_4.12.3-3_source.buildinfo
Checksums-Sha256:
8fddf0c0d1a0c8353293f7a6b4831bfade5732573709502ce7c5cfccdcd3b53f 1874
beautifulsoup4_4.12.3-3.dsc
3fea9cf0eddc0458d7c7393e39922d54b97d3d9823bfc082167677ed221da39d 9052
beautifulsoup4_4.12.3-3.debian.tar.xz
f482cefd65bec4e0e2e2f18c1d48a9079ebe3253c51836ddde79259e695630bb 8377
beautifulsoup4_4.12.3-3_source.buildinfo
Files:
b40e0292cdada65321542263c325f794 1874 python optional
beautifulsoup4_4.12.3-3.dsc
a3c18d38ae27fbac060ddd109272c0c0 9052 python optional
beautifulsoup4_4.12.3-3.debian.tar.xz
076d66bd120a3aafecafb0d47918e931 8377 python optional
beautifulsoup4_4.12.3-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCZsYK/BQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2PH3AQC6P4R4E38Ruyvz/Jmav4pQMGiVkWZT
hlvaF5W+JyXOygD7B1z8A38kN6378BPr1OIfQHJyT1+Sry1J0l3st1uvJwU=
=X59e
-----END PGP SIGNATURE-----
pgpdRZk8fRLA1.pgp
Description: PGP signature
--- End Message ---