NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/51798: libm failures spotted by py-scipy's testsuite
>Number: 51798
>Category: lib
>Synopsis: libm failures spotted by py-scipy's testsuite
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 08 11:55:00 +0000 2017
>Originator: coypu
>Release: NetBSD 7.99.54
>Organization:
>Environment:
NetBSD box 7.99.54 NetBSD 7.99.54 (GENERIC) #1: Mon Jan 2 13:38:36 IST 2017 fly@box:/usr/amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
Add to mk.conf:
PKGSRC_FORTRAN=gfortran
GFORTRAN_VERSION=6
(g95 has additional unrelated failures)
cd /usr/pkgsrc/math/py-scipy
bmake install test
======================================================================
FAIL: test_basic (test_signaltools.TestCSpline1DEval)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pkg/pkg/lib/python2.7/site-packages/scipy/signal/tests/test_signaltools.py", line 598, in test_basic
assert_array_almost_equal(y2[::10], y, decimal=5)
File "/home/pkg/pkg/lib/python2.7/site-packages/numpy/testing/utils.py", line 918, in assert_array_almost_equal
precision=decimal)
File "/home/pkg/pkg/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 5 decimals
(mismatch 11.1111111111%)
x: array([ 0.99999, 2. , 3. , 4. , 3. , 2. ,
1. , 2. , 3. ])
y: array([ 1., 2., 3., 4., 3., 2., 1., 2., 3.])
======================================================================
FAIL: test_expm1_complex (test_basic.TestCephes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pkg/pkg/lib/python2.7/site-packages/numpy/testing/decorators.py", line 147, in skipper_func
return f(*args, **kwargs)
File "/home/pkg/pkg/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 313, in test_expm1_complex
assert_equal(expm1(complex(np.inf, 0)), complex(np.inf, 0))
File "/home/pkg/pkg/lib/python2.7/site-packages/numpy/testing/utils.py", line 350, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: (nan+nan*j)
DESIRED: (inf+0j)
======================================================================
FAIL: test_log1p_complex (test_basic.TestCephes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pkg/pkg/lib/python2.7/site-packages/numpy/testing/decorators.py", line 147, in skipper_func
return f(*args, **kwargs)
File "/home/pkg/pkg/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 557, in test_log1p_complex
assert_equal(log1p(c(np.inf, np.nan)), c(np.inf, np.nan))
File "/home/pkg/pkg/lib/python2.7/site-packages/numpy/testing/utils.py", line 350, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: (nan+nan*j)
DESIRED: (inf+nanj)
----------------------------------------------------------------------
Ran 24552 tests in 574.348s
FAILED (KNOWNFAIL=98, SKIP=2029, failures=3)
There are additional warnings during the test, too, but it's unclear if they are meaningful to us yet.
scipy issue: https://github.com/scipy/scipy/issues/6499
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index