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

Loïc BERTHE berthe.loic@gmail....
Sun Feb 24 00:23:59 CST 2008


  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080224/a1850915/attachment-0001.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scipy_numpy.txt
Url: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080224/a1850915/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: numpy_scipy.txt
Url: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080224/a1850915/attachment-0003.txt 


More information about the Numpy-discussion mailing list