[SciPy-Dev] New test errors in sparse

Blake Griffith blake.a.griffith at gmail.com
Thu Jun 13 17:12:41 EDT 2013


On Thu, Jun 13, 2013 at 2:30 AM, Pauli Virtanen <pav at iki.fi> wrote:

> Blake Griffith <blake.a.griffith <at> gmail.com> writes:
> > Hello SciPy, I was investigating why my recent PR failed to
> > pass travis, and it looks like a bunch of tests errors appeared
> > in sparse. I get:
> >
> > FAILED (KNOWNFAIL=27, SKIP=169, errors=50)
>
> The Travis build runs with the latest released version of Numpy
> (i.e. 1.7.1), so it will not catch regressions/deprecations/etc.
> in Numpy master.
>
> [clip: DeprecationWarnings and TypeErrors]
> > I can submit a fix for the tests that are now raising
> > a DepreciationWarning.
>
> That would be useful.
>
> > But I can't figure out where the TypeError popped up. Or
> > what is causing it. Some help here would be appreciated.
>
> I can take a look if I manage to reproduce it.
>
> --
> Pauli Virtanen
>

This should help, every traceback for the type errors ends in the same
place:

...

======================================================================
ERROR: test_expm (test_base.TestLIL)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/blake/.virtualenvs/scipy/local/lib/python2.7/site-packages/scipy/sparse/tests/test_base.py",
line 168, in test_expm
    Mexp = scipy.linalg.expm(M)
  File
"/home/blake/.virtualenvs/scipy/local/lib/python2.7/site-packages/scipy/linalg/matfuncs.py",
line 57, in expm
    return scipy.sparse.linalg.expm(A)
  File
"/home/blake/.virtualenvs/scipy/local/lib/python2.7/site-packages/scipy/sparse/linalg/matfuncs.py",
line 331, in expm
    s = s + _ell(2**-s * A, 13)
  File
"/home/blake/.virtualenvs/scipy/local/lib/python2.7/site-packages/scipy/sparse/linalg/matfuncs.py",
line 493, in _ell
    alpha = est / (_exact_1_norm(A) * abs_c_recip)
TypeError: unsupported operand type(s) for *: 'numpy.float64' and 'long'

----------------------------------------------------------------------
Ran 6558 tests in 81.194s

FAILED (KNOWNFAIL=23, SKIP=169, errors=34)
Out[2]: <nose.result.TextTestResult run=6558 errors=34 failures=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20130613/1773ec88/attachment.html>


More information about the SciPy-Dev mailing list