[SciPy-Dev] test failures with python 2.4

Ralf Gommers ralf.gommers at googlemail.com
Mon Jun 4 14:56:39 EDT 2012


On Thu, May 31, 2012 at 5:50 PM, Denis Laxalde <denis at laxalde.org> wrote:

>
> Sparse:
>
>
>  ======================================================================
>        ERROR: adding a dense matrix to a sparse matrix
>
>  ----------------------------------------------------------------------
>        Traceback (most recent call last):
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py",
> line 527, in test_add_dense
>            sum1 = self.dat + self.datsp
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line
> 133, in __getitem__
>            raise TypeError('index must be a pair of integers or slices')
>        TypeError: index must be a pair of integers or slices
>
>
>  ======================================================================
>        ERROR: test_matmat_sparse (test_base.TestDOK)
>
>  ----------------------------------------------------------------------
>        Traceback (most recent call last):
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py",
> line 425, in test_matmat_sparse
>            assert_array_almost_equal( a2*bsp, a*b)
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line
> 133, in __getitem__
>            raise TypeError('index must be a pair of integers or slices')
>        TypeError: index must be a pair of integers or slices
>
>
>  ======================================================================
>        ERROR: test_radd (test_base.TestDOK)
>
>  ----------------------------------------------------------------------
>        Traceback (most recent call last):
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py",
> line 279, in test_radd
>            c = a + b
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line
> 133, in __getitem__
>            raise TypeError('index must be a pair of integers or slices')
>        TypeError: index must be a pair of integers or slices
>
>
>  ======================================================================
>        ERROR: test_rsub (test_base.TestDOK)
>
>  ----------------------------------------------------------------------
>        Traceback (most recent call last):
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py",
> line 290, in test_rsub
>            assert_array_equal((self.dat -
> self.datsp),[[0,0,0,0],[0,0,0,0],[0,0,0,0]])
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line
> 133, in __getitem__
>            raise TypeError('index must be a pair of integers or slices')
>        TypeError: index must be a pair of integers or slices
>
>
>  ======================================================================
>        ERROR: subtracting a dense matrix to/from a sparse matrix
>
>  ----------------------------------------------------------------------
>        Traceback (most recent call last):
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/tests/test_base.py",
> line 535, in test_sub_dense
>            sum1 = 3*self.dat - self.datsp
>          File
> "/home/denis/.local/lib/python2.4/site-packages/scipy/sparse/dok.py", line
> 133, in __getitem__
>            raise TypeError('index must be a pair of integers or slices')
>        TypeError: index must be a pair of integers or slices
>
>
>  ----------------------------------------------------------------------
>        Ran 1210 tests in 12.543s
>
>        FAILED (KNOWNFAIL=4, errors=5)
>
>
These are silences by https://github.com/scipy/scipy/pull/237. See
http://projects.scipy.org/scipy/ticket/1559 for details.



> Special:
>
>
>  ................../home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1645:
> RuntimeWarning: divide by zero encountered in iv
>          c1 = special.iv(v, x)
>
>  /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1645:
> RuntimeWarning: overflow encountered in iv
>          c1 = special.iv(v, x)
>
>  /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1646:
> RuntimeWarning: invalid value encountered in iv
>          c2 = special.iv(v, x+0j)
>
>  /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1652:
> RuntimeWarning: divide by zero encountered in divide
>          dc = abs(c1/c2 - 1)
>
>  /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1652:
> RuntimeWarning: invalid value encountered in divide
>          dc = abs(c1/c2 - 1)
>
>  /home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py:1659:
> RuntimeWarning: overflow encountered in iv
>          assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]),
> special.iv(v[k], x[k]+0j)))
>
>  F...................................................K.K.............................................................................................................................................................................................................................................................................................................................................................................................K........K..................................................
>
>  ======================================================================
>        FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel)
>
>  ----------------------------------------------------------------------
>        Traceback (most recent call last):
>          File
> "/home/denis/.local/lib/python2.7/site-packages/scipy/special/tests/test_basic.py",
> line 1659, in test_iv_cephes_vs_amos_mass_test
>            assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]),
> special.iv(v[k], x[k]+0j)))
>          File "/usr/lib/pymodules/python2.7/numpy/testing/utils.py", line
> 34, in assert_
>            raise AssertionError(msg)
>        AssertionError: (189.2947429454936, 3.0238805556481037,
> 4.089165443940765e-317, 0j)
>
> This one I can't reproduce.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20120604/6bc8c971/attachment.html>


More information about the SciPy-Dev mailing list