[Debian-med-packaging] Bug#982098: python-anndata: autopkgtest failure on 32bit

Adrian Bunk bunk at debian.org
Sat Feb 6 15:04:49 GMT 2021


Source: python-anndata
Version: 0.7.5+ds-2
Severity: serious

https://tracker.debian.org/pkg/python-anndata

Migration status for python-anndata (- to 0.7.5+ds-2): BLOCKED: Rejected/violates migration policy/introduces a regression
Issues preventing migration:
autopkgtest for python-anndata/0.7.5+ds-2: amd64: Pass, arm64: Pass, armhf: Regression â™» , i386: Regression â™» , ppc64el: Pass


...
=================================== FAILURES ===================================
___________________ test_set_dataframe[<lambda>-False-int32] ___________________

homogenous = False, df = <function <lambda> at 0xf1d74148>
dtype = <class 'numpy.int32'>

    @pytest.mark.parametrize(
        "df,homogenous,dtype",
        [
            (lambda: gen_typed_df_t2_size(*X.shape), True, np.object_),
            (lambda: pd.DataFrame(X ** 2), False, np.int_),
        ],
    )
    def test_set_dataframe(homogenous, df, dtype):
        adata = AnnData(X)
        if homogenous:
            with pytest.warns(UserWarning, match=r"Layer 'df'.*dtype object"):
                adata.layers["df"] = df()
        else:
            with pytest.warns(None) as warnings:
                adata.layers["df"] = df()
                assert not len(warnings)
        assert isinstance(adata.layers["df"], np.ndarray)
>       assert np.issubdtype(adata.layers["df"].dtype, dtype)
E       AssertionError: assert False
E        +  where False = <function issubdtype at 0xf60991d8>(dtype('int32'), <class 'numpy.int32'>)
E        +    where <function issubdtype at 0xf60991d8> = np.issubdtype
E        +    and   dtype('int32') = array([[ 1,  4,  9],\n       [16, 25, 36],\n       [49, 64, 81]], dtype=int32).dtype

/usr/lib/python3/dist-packages/anndata/tests/test_layers.py:62: AssertionError
...



Removing this assert in line 62 fixes the build on i386 for me,
which might be the way forward for getting the package into bullseye.


More information about the Debian-med-packaging mailing list