[Debian-med-packaging] Bug#950474: python-cogent FTBFS on armel and i386: test failures

Adrian Bunk bunk at debian.org
Sun Feb 2 11:12:27 GMT 2020


Source: python-cogent
Version: 2019.12.6a+dfsg-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/fetch.php?pkg=python-cogent&arch=armel&ver=2019.12.6a%2Bdfsg-1&stamp=1579377813&raw=0

...
======================================================================
FAIL: test_col_uncertainty (tests.test_maths.test_util.ArrayMathTests)
column_uncertainty: should handle pos/neg/zero/empty arrays
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_cogent3/build/tests/test_maths/test_util.py", line 137, in test_col_uncertainty
    column_uncertainty(array([[-2]]))
AssertionError: FloatingPointError not raised
...


https://buildd.debian.org/status/fetch.php?pkg=python-cogent&arch=i386&ver=2019.12.6a%2Bdfsg-1&stamp=1579375248&raw=0

...
======================================================================
FAIL: test_jsm (tests.test_maths.test_measure.TestJensenShannon)
case1 is testing if the jsm between two identical distributions is 0.0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_cogent3/build/tests/test_maths/test_measure.py", line 242, in test_jsm
    assert_allclose(
  File "/usr/lib/python3/dist-packages/numpy/testing/_private/utils.py", line 1514, in assert_allclose
    assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
  File "/usr/lib/python3/dist-packages/numpy/testing/_private/utils.py", line 841, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=0
Testing case4 for jsm failed
Mismatch: 100%
Max absolute difference: 2.10734243e-08
Max relative difference: inf
 x: array(2.107342e-08)
 y: array(0.)
...


The armel port has no FPU in the baseline,
and the math emulation does not handle all corner cases correctly.

The i386 port uses the 387 FPU that has excess precision.

Since this package likely has no users on armel or i386,
I'd suggest to file an RM bug for the old binaries and
then lower the severity of this bug.



More information about the Debian-med-packaging mailing list