[Scipy-tickets] [SciPy] #469: Test failures

SciPy scipy-tickets@scipy....
Thu Jul 26 10:34:28 CDT 2007


#469: Test failures
--------------------------+-------------------------------------------------
 Reporter:  nils          |        Owner:  somebody     
     Type:  defect        |       Status:  new          
 Priority:  high          |    Milestone:  0.5.3 Release
Component:  scipy.linalg  |      Version:  devel        
 Severity:  major         |   Resolution:               
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by nils):

 I have removed the patch that comes with
 [http://projects.scipy.org/scipy/numpy/ticket/557].
 Now I get
 {{{
 ======================================================================
 FAIL: test_explicit (scipy.tests.test_odr.test_odr)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-packages/scipy/odr/tests/test_odr.py",
 line 49, in test_explicit
     np.array([  1.2646548050648876e+03,  -5.4018409956678255e+01,
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 230, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 215, in assert_array_compare
     assert cond, msg
 AssertionError:
 Arrays are not almost equal

 (mismatch 100.0%)
  x: array([  1.26462971e+03,  -5.42545890e+01,  -8.64250389e-02])
  y: array([  1.26465481e+03,  -5.40184100e+01,  -8.78497122e-02])

 ======================================================================
 FAIL: test_multi (scipy.tests.test_odr.test_odr)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-packages/scipy/odr/tests/test_odr.py",
 line 190, in test_multi
     np.array([ 4.3799880305938963,  2.4333057577497703,
 8.0028845899503978,
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 230, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "/usr/lib64/python2.4/site-packages/numpy/testing/utils.py", line
 215, in assert_array_compare
     assert cond, msg
 AssertionError:
 Arrays are not almost equal

 (mismatch 100.0%)
  x: array([ 4.31272063,  2.44289312,  7.76215871,  0.55995622,
 0.46423343])
  y: array([ 4.37998803,  2.43330576,  8.00288459,  0.51011472,
 0.51739023])

 ----------------------------------------------------------------------
 Ran 1705 tests in 4.405s

 FAILED (failures=2)
 Numpy is installed in /usr/lib64/python2.4/site-packages/numpy
 Numpy version 1.0.4.dev3901
 Python version 2.4.1 (#1, May 25 2007, 18:41:31) [GCC 4.0.2 20050901
 (prerelease) (SUSE Linux)]
   Found 10 tests for numpy.core.defmatrix
   Found 36 tests for numpy.core.ma
   Found 213 tests for numpy.core.multiarray
   Found 59 tests for numpy.core.numeric
   Found 31 tests for numpy.core.numerictypes
   Found 9 tests for numpy.core.records
   Found 5 tests for numpy.core.scalarmath
   Found 14 tests for numpy.core.umath
   Found 4 tests for numpy.ctypeslib
   Found 5 tests for numpy.distutils.misc_util
   Found 1 tests for numpy.fft.fftpack
   Found 3 tests for numpy.fft.helper
   Found 9 tests for numpy.lib.arraysetops
   Found 46 tests for numpy.lib.function_base
   Found 5 tests for numpy.lib.getlimits
   Found 4 tests for numpy.lib.index_tricks
   Found 2 tests for numpy.lib.polynomial
   Found 49 tests for numpy.lib.shape_base
   Found 13 tests for numpy.lib.twodim_base
   Found 42 tests for numpy.lib.type_check
   Found 1 tests for numpy.lib.ufunclike
   Found 32 tests for numpy.linalg
   Found 0 tests for __main__
 ...................................................................................................................................................................................................................E.............................................................................................................................................................................................................................................................................................................................................................................................
 ======================================================================
 ERROR: Ticket #396
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python2.4/site-
 packages/numpy/core/tests/test_regression.py", line 600, in
 check_poly1d_nan_roots
     self.failUnlessRaises(N.linalg.LinAlgError,getattr,p,"r")
   File "/usr/lib64/python2.4/unittest.py", line 320, in failUnlessRaises
     callableObj(*args, **kwargs)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/polynomial.py", line
 619, in __getattr__
     return roots(self.coeffs)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/polynomial.py", line
 124, in roots
     roots = _eigvals(A)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/polynomial.py", line
 40, in _eigvals
     return eigvals(arg)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/decomp.py", line
 378, in eigvals
     return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
   File "/usr/lib64/python2.4/site-packages/scipy/linalg/decomp.py", line
 128, in eig
     a1 = asarray_chkfinite(a)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/function_base.py",
 line 361, in asarray_chkfinite
     raise ValueError, "array must not contain infs or NaNs"
 ValueError: array must not contain infs or NaNs

 ----------------------------------------------------------------------
 Ran 593 tests in 0.675s

 FAILED (errors=1)
 }}}

 Thus the ticket can be closed. It seems that the patch
 '''fix_pinv_crash.patch ''' has introduced the trouble.

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/469#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list