[SciPy-user] Question about test failures

Anil N. Hirani hirani@cs.uiuc....
Fri Mar 16 10:10:09 CDT 2007


I built and installed scipy from the svn respository (svn co http:// 
svn.scipy.org/svn/scipy/trunk scipy)
on March 15, on a Mac OS X 10.4.8 with python2.5. Running the scipy  
test(1,10) gave 3 faiilures.
What is curious is that even though the dot product fails in the test  
(see second and third FAIL below),
the same expression gives the right result when I typed it in :

 >>> dot([3j,-4,3-4j],[2,3,1])
(-9+2j)

Can someone please let me know the possible reasons, fixes and  
consequences of the
test failures listed below.

Regards
Anil Hirani



======================================================================
FAIL: check loadmat case sparse
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/sw/lib/python2.5/site-packages/scipy/io/tests/test_mio.py",  
line 85, in cc
     self._check_case(name, files, expected)
   File "/sw/lib/python2.5/site-packages/scipy/io/tests/test_mio.py",  
line 80, in _check_case
     self._check_level(k_label, expected, matdict[k])
   File "/sw/lib/python2.5/site-packages/scipy/io/tests/test_mio.py",  
line 63, in _check_level
     decimal = 5)
   File "/sw/lib/python2.5/site-packages/numpy/testing/utils.py",  
line 230, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "/sw/lib/python2.5/site-packages/numpy/testing/utils.py",  
line 215, in assert_array_compare
     assert cond, msg
AssertionError:
Arrays are not almost equal
test sparse; file /sw/lib/python2.5/site-packages/scipy/io/tests/./ 
data/testsparse_6.5.1_GLNX86.mat, variable testsparse
(mismatch 46.6666666667%)
x: array([[  3.03865194e-319,   3.16202013e-322,   1.04346664e-320,
           2.05531309e-320,   2.56123631e-320],
        [  3.16202013e-322,   0.00000000e+000,   0.00000000e+000,...
y: array([[ 1.,  2.,  3.,  4.,  5.],
        [ 2.,  0.,  0.,  0.,  0.],
        [ 3.,  0.,  0.,  0.,  0.]])

======================================================================
FAIL: check_dot (scipy.lib.tests.test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/sw/lib/python2.5/site-packages/scipy/lib/blas/tests/ 
test_blas.py", line 76, in check_dot
     assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
   File "/sw/lib/python2.5/site-packages/numpy/testing/utils.py",  
line 156, in assert_almost_equal
     assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
ACTUAL: (-1.998711109161377+1.0175286878527778e-36j)
DESIRED: (-9+2j)

======================================================================
FAIL: check_dot (scipy.linalg.tests.test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/sw/lib/python2.5/site-packages/scipy/linalg/tests/ 
test_blas.py", line 75, in check_dot
     assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
   File "/sw/lib/python2.5/site-packages/numpy/testing/utils.py",  
line 156, in assert_almost_equal
     assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
ACTUAL: (-1.998711109161377+1.3368407079941133e-36j)
DESIRED: (-9+2j)



More information about the SciPy-user mailing list