[Debian-astro-maintainers] Bug#966713: astropy test fails

Drew Parsons dparsons at debian.org
Sun Aug 2 12:30:16 BST 2020


Source: astropy
Version: 4.0.1+post1-3
Severity: normal

astropy has started failing tests.  Failure is triggered by scipy
1.5.2-2, but tests passed with scipy 1.5.2-1.

The details of the failure don't appear to be related to scipy.
It involves Leap_Second.dat instead:


___________ TestDefaultAutoOpen.test_system_file_used_if_not_expired ___________

self = <astropy.utils.iers.tests.test_leap_second.TestDefaultAutoOpen object at 0xffff77360370>
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_system_file_used_if_not_e0')

    @pytest.mark.skipif(not os.path.isfile(SYSTEM_FILE),
                        reason=f'system does not have {SYSTEM_FILE}')
    def test_system_file_used_if_not_expired(self, tmpdir):
        # We skip the test if the system file is on a CI and is expired -
        # we should not depend on CI keeping it up to date, but if it is,
        # we should check that it is used if possible.
        if (iers.LeapSeconds.open(SYSTEM_FILE).expires <= self.good_enough
                and ON_CI):
            pytest.skip("CI system leap second file is expired.")
    
        self.remove_auto_open_files('erfa')
        with iers.conf.set_temp('system_leap_second_file', SYSTEM_FILE):
            ls = iers.LeapSeconds.open()
            assert ls.expires > self.good_enough
>           assert ls.meta['data_url'] in (iers.IERS_LEAP_SECOND_FILE,
                                           SYSTEM_FILE)
E           AssertionError: assert 'https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat' in ('/usr/lib/python3/dist-packages/astropy/utils/iers/data/Leap_Second.dat', '/usr/share/zoneinfo/leap-seconds.list')

/usr/lib/python3/dist-packages/astropy/utils/iers/tests/test_leap_second.py:252: AssertionError





-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-2-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the Debian-astro-maintainers mailing list