[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#939457: lxml breaks beautifulsoup4 autopkgtest: a real XHTML didn't come out *exactly* the same as it went in



Source: lxml, beautifulsoup4
Control: found -1 lxml/4.4.1-1
Control: found -1 beautifulsoup4/4.8.0-1
Severity: serious
Tags: sid bullseye
X-Debbugs-CC: debian-ci@lists.debian.org
User: debian-ci@lists.debian.org
Usertags: breaks needs-update

Dear maintainers,

With a recent upload of lxml the autopkgtest of beautifulsoup4 fails in
testing when that autopkgtest is run with the binary packages of lxml
from unstable. It passes when run with only packages from testing. In
tabular form:
                       pass            fail
lxml                   from testing    4.4.1-1
beautifulsoup4         from testing    4.8.0-1
all others             from testing    from testing

I copied some of the output at the bottom of this report. The test seems
to me to be testing a reasonable thing, but I am not in the position to
judge if this is indeed guaranteed behavior: A real XHTML document
should come out *exactly* the same as it went in.

Currently this regression is blocking the migration of lxml to testing
[1]. Due to the nature of this issue, I filed this bug report against
both packages. Can you please investigate the situation and reassign the
bug to the right package?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=lxml

https://ci.debian.net/data/autopkgtest/testing/amd64/b/beautifulsoup4/2885653/log.gz

autopkgtest [18:11:15]: test unittests3: [-----------------------
=== python3.7 ===
.........................................................................................................................................../usr/lib/python3/dist-packages/bs4/builder/_htmlparser.py:78:
UserWarning: don't crash
  warnings.warn(msg)
......................................................................F...F..........................................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_nested_namespaces
(bs4.tests.test_lxml.LXMLXMLTreeBuilderSmokeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/bs4/testing.py", line 841, 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 830, 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 496 tests in 0.443s

FAILED (failures=2)
autopkgtest [18:11:16]: test unittests3: -----------------------]

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: