Source: python-fitsio
Version: 1.4.2+ds-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: [email protected], [email protected]
User: [email protected]
Usertags: s390x

Dear maintainer

python-fitsio FTBFS on s390x:

fitsio/tests/test_warnings.py .                                          [100%]

=================================== FAILURES ===================================
______________ test_image_compression_gzip_subnormal_cast_to_zero ______________

    def test_image_compression_gzip_subnormal_cast_to_zero():
        # test code from astrofrog in 
https://github.com/esheldon/fitsio/issues/513
        data = np.zeros(
            (5, 1), dtype='>f4'
        )  # a single 5x1 tile, big-endian float32
        data[:, 0] = [134.97459, 248.02034, 183.40105, 57.59670, 216.31425]
    
        with tempfile.TemporaryDirectory() as tmpdir:
            fn = os.path.join(tmpdir, "mini.fit")
            with FITS(fn, "rw") as f:
                f.write(
                    data, compress="GZIP_1", tile_dims=(5, 1), qlevel=5, 
qmethod=-1
                )
    
            back = read(fn)
            if cfitsio_is_bundled():
                assert not back.ravel()[0] == 0, back.ravel()
            else:
>               assert back.ravel()[0] == 0, back.ravel()
E               AssertionError: array([134.9746 , 248.02034, 183.40105,  
57.5967 , 216.31425],
E                       dtype=float32)
E               assert np.float32(134.9746) == 0

fitsio/tests/test_image_compression.py:930: AssertionError
=============================== warnings summary ===============================
fitsio/tests/test_image_compression.py:621
  
/build/reproducible-path/python-fitsio-1.4.2+ds/.pybuild/cpython3_3.14_fitsio/build/fitsio/tests/test_image_compression.py:621:
 PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo?  You can 
register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.slow

fitsio/tests/test_image_compression.py:637
  
/build/reproducible-path/python-fitsio-1.4.2+ds/.pybuild/cpython3_3.14_fitsio/build/fitsio/tests/test_image_compression.py:637:
 PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo?  You can 
register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    pytest.mark.slow,

fitsio/tests/test_segfault.py:54
  
/build/reproducible-path/python-fitsio-1.4.2+ds/.pybuild/cpython3_3.14_fitsio/build/fitsio/tests/test_segfault.py:54:
 PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo?  You can 
register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.slow

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED 
fitsio/tests/test_image_compression.py::test_image_compression_gzip_subnormal_cast_to_zero
= 1 failed, 1882 passed, 906 skipped, 110 xfailed, 5 xpassed, 3 warnings in 
18.29s =
E: pybuild pybuild:485: test: plugin distutils failed with: exit code=1: cd 
/build/reproducible-path/python-fitsio-1.4.2+ds/.pybuild/cpython3_3.14_fitsio/build;
 python3.14 -m pytest 
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 
--parallel=2 returned exit code 13

See
https://buildd.debian.org/status/fetch.php?pkg=python-fitsio&arch=s390x&ver=1.4.2%2Bds-1&stamp=1788610336&raw=0
for details.

Cheers
-- 
Sebastian Ramacher

Reply via email to