[Numpy-discussion] numpy.test() fails if it runs after scipy.test()

Christopher Burns cburns@berkeley....
Thu Feb 28 12:19:48 CST 2008


Loic,

I was not able to reproduce this.  Have you tried doing a clean
install by removing your numpy and scipy directories in the
site-packages and reinstalling.  I've had old files in my install
directory cause problems in the past.

You are correct, the tests should not effect one another.

Chris

On Sat, Feb 23, 2008 at 10:23 PM, Loïc BERTHE <berthe.loic@gmail.com> wrote:
>   Hi,
>
> I've got one failure if I run numpy.test() after running scipy.test() :
>
> ======================================================================
> ERROR: Ticket #396
> ----------------------------------------------------------------------
>  Traceback (most recent call last):
>   File
> "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/core/tests/test_regression.py",
> line 600, in check_poly1d_nan_roots
>     self.failUnlessRaises(N.linalg.LinAlgError,getattr,p,"r")
>    File "/home/loic/tmp/Linux/lib/python2.5/unittest.py", line 320, in
> failUnlessRaises
>     callableObj(*args, **kwargs)
>   File
> "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
> line 623, in __getattr__
>      return roots(self.coeffs)
>   File
> "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
> line 124, in roots
>     roots = _eigvals(A)
>   File
> "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/polynomial.py",
> line 37, in _eigvals
>      return eigvals(arg)
>   File
> "/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py",
> line 378, in eigvals
>     return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
>   File
> "/home/loic/tmp/Linux/lib/python2.5/site-packages/scipy/linalg/decomp.py",
> line 128, in eig
>      a1 = asarray_chkfinite(a)
>   File
> "/home/loic/tmp/Linux/lib/python2.5/site-packages/numpy/lib/function_base.py",
> line 398, in asarray_chkfinite
>     raise ValueError, "array must not contain infs or NaNs"
>  ValueError: array must not contain infs or NaNs
>
> But I've got no error if I begin with numpy test.
> I've seen that this Ticket #396 seems closed in Trac, should I reopen it ?
>
> for more information, I've attached the results of scipy.test and
> numpy.test.
>
> Regards,
>
> --
> LB
>
>
> _______________________________________________
>  Numpy-discussion mailing list
>  Numpy-discussion@scipy.org
>  http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
>



-- 
Christopher Burns, Software Engineer
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/


More information about the Numpy-discussion mailing list