Bug#963820: numpy breaks python-xarray autopkgtest: test_use_cftime_standard_calendar_default_in_range[gregorian] fails

Paul Gevers elbrus at debian.org
Sat Jun 27 21:10:08 BST 2020


Source: numpy, python-xarray
Control: found -1 numpy/1:1.19.0-1
Control: found -1 python-xarray/0.15.1-3
Severity: serious
Tags: sid bullseye
X-Debbugs-CC: debian-ci at lists.debian.org
User: debian-ci at lists.debian.org
Usertags: breaks needs-update

Dear maintainer(s),

With a recent upload of numpy the autopkgtest of python-xarray fails in
testing when that autopkgtest is run with the binary packages of numpy
from unstable. It passes when run with only packages from testing. In
tabular form:

                       pass            fail
numpy                  from testing    1:1.19.0-1
python-xarray          from testing    0.15.1-3
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 numpy 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=numpy

https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-xarray/6058471/log.gz

=================================== FAILURES
===================================
_____________________ TestFitscheck.test_overwrite_invalid
_____________________

self = <astropy.io.fits.tests.test_fitscheck.TestFitscheck object at
0x7fb2188aa340>
capsys = <_pytest.capture.CaptureFixture object at 0x7fb217e24160>

    def test_overwrite_invalid(self, capsys):
        """
        Tests that invalid checksum or datasum are overwriten when the
file is
        saved.
        """
        reffile = self.temp('ref.fits')
        with fits.open(self.data('tb.fits')) as hdul:
            hdul.writeto(reffile, checksum=True)

        # replace checksums with wrong ones
        testfile = self.temp('test.fits')
        with fits.open(self.data('tb.fits')) as hdul:
            hdul[0].header['DATASUM'] = '1       '
            hdul[0].header['CHECKSUM'] = '8UgqATfo7TfoATfo'
            hdul[1].header['DATASUM'] = '2349680925'
            hdul[1].header['CHECKSUM'] = '11daD8bX98baA8bU'
            hdul.writeto(testfile)

        assert fitscheck.main([testfile]) == 1
        stdout, stderr = capsys.readouterr()
        assert 'BAD' in stderr
        assert 'Checksum verification failed' in stderr

        assert fitscheck.main([testfile, '--write', '--force']) == 1
        stdout, stderr = capsys.readouterr()
        assert 'BAD' in stderr

        # check that the file was fixed
>       assert fitscheck.main([testfile]) == 0
E       AssertionError: assert 1 == 0
E        +  where 1 = <function main at
0x7fb21d1a6dc0>(['/tmp/fits-test-cl7x2fx0/test.fits'])
E        +    where <function main at 0x7fb21d1a6dc0> = fitscheck.main


-------------- 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-science-maintainers/attachments/20200627/a345214d/attachment.sig>


More information about the debian-science-maintainers mailing list