[Debian-med-packaging] Bug#939045: mypy: autopkgtest needs update for new version of lxml

Paul Gevers elbrus at debian.org
Sat Aug 31 14:29:54 BST 2019


Source: mypy
Version: 0.720-2
Severity: serious
X-Debbugs-CC: debian-ci at lists.debian.org, lxml at packages.debian.org
Tags: sid bullseye
User: debian-ci at lists.debian.org
Usertags: needs-update
Control: affects -1 src:lxml

Dear maintainers,

With a recent upload of lxml the autopkgtest of mypy 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
mypy                   from testing    0.720-2
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of lxml to testing
[1]. Of course, lxml shouldn't just break your autopkgtest (or even
worse, your package), but it seems to me that the change in lxml was
intended and your package needs to update to the new situation. Please
reassign to lxml when I judged this wrong.

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/m/mypy/2854351/log.gz

=================================== FAILURES
===================================
_______________________ CoberturaReportSuite.test_as_xml
_______________________
[gw1] linux -- Python 3.7.4 /usr/bin/python3

self = <mypy.test.testreports.CoberturaReportSuite testMethod=test_as_xml>

    def test_as_xml(self) -> None:
        cobertura_package = CoberturaPackage('foobar')
        cobertura_package.covered_lines = 21
        cobertura_package.total_lines = 42

        child_package = CoberturaPackage('raz')
        child_package.covered_lines = 10
        child_package.total_lines = 10
        child_package.classes['class'] = etree.Element('class')

        cobertura_package.packages['raz'] = child_package

        expected_output = textwrap.dedent('''\
            <package complexity="1.0" name="foobar" branch-rate="0"
line-rate="0.5000">
              <classes/>
              <packages>
                <package complexity="1.0" name="raz" branch-rate="0"
line-rate="1.0000">
                  <classes>
                    <class/>
                  </classes>
                </package>
              </packages>
            </package>
        ''').encode('ascii')
        assert_equal(expected_output,
>                    etree.tostring(cobertura_package.as_xml(),
pretty_print=True))

/usr/lib/python3/dist-packages/mypy/test/testreports.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

a = b'<package complexity="1.0" name="foobar" branch-rate="0"
line-rate="0.5000">\n  <classes/>\n  <packages>\n    <packag...
line-rate="1.0000">\n      <classes>\n        <class/>\n
</classes>\n    </package>\n  </packages>\n</package>\n'
b = b'<package name="foobar" complexity="1.0" branch-rate="0"
line-rate="0.5000">\n  <classes/>\n  <packages>\n    <packag...
line-rate="1.0000">\n      <classes>\n        <class/>\n
</classes>\n    </package>\n  </packages>\n</package>\n'
fmt = '{} != {}'

    def assert_equal(a: object, b: object, fmt: str = '{} != {}') -> None:
        if a != b:
>           raise AssertionError(fmt.format(good_repr(a), good_repr(b)))
E           AssertionError: b'<package complexity="1.0" name="foobar"
branch-rate="0" line-rate="0.5000">\n  <classes/>\n  <packages>\n
<package complexity="1.0" name="raz" branch-rate="0"
line-rate="1.0000">\n      <classes>\n        <class/>\n
</classes>\n    </package>\n  </packages>\n</package>\n' != b'<package
name="foobar" complexity="1.0" branch-rate="0" line-rate="0.5000">\n
<classes/>\n  <packages>\n    <package name="raz" complexity="1.0"
branch-rate="0" line-rate="1.0000">\n      <classes>\n        <class/>\n
     </classes>\n    </package>\n  </packages>\n</package>\n'

/usr/lib/python3/dist-packages/mypy/test/helpers.py:349: AssertionError


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20190831/2da9d313/attachment.sig>


More information about the Debian-med-packaging mailing list