[Scipy-tickets] [SciPy] #1729: Many unit test failures on OSX mountain lion (10.8)

SciPy Trac scipy-tickets@scipy....
Sat Sep 22 02:53:22 CDT 2012


#1729: Many unit test failures on OSX mountain lion (10.8)
---------------------------------------+------------------------------------
 Reporter:  breuderink                 |       Owner:  somebody   
     Type:  defect                     |      Status:  new        
 Priority:  normal                     |   Milestone:  Unscheduled
Component:  scipy.sparse.linalg        |     Version:  devel      
 Keywords:  arpack failures OSX apple  |  
---------------------------------------+------------------------------------

Comment(by rgommers):

 Here's a summary of failures:
 {{{
 ======================================================================
 ERROR: test_logm_consistency (test_matfuncs.TestExpM)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/sparse/linalg/tests/test_matfuncs.py", line 53, in
 test_logm_consistency
     assert_array_almost_equal(expm(logm(a)), a)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/matfuncs.py", line 364, in logm
     errest = norm(expm(F)-A,1) / norm(A,1)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/matfuncs.py", line 50, in expm
     return scipy.sparse.linalg.expm(A)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/sparse/linalg/matfuncs.py", line 75, in expm
     A_L1 = norm(A,1)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/misc.py", line 12, in norm
     a = np.asarray_chkfinite(a)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/lib/function_base.py", line 590, in asarray_chkfinite
     "array must not contain infs or NaNs")
 ValueError: array must not contain infs or NaNs

 ======================================================================
 FAIL: test_asum (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/lib/blas/tests/test_blas.py", line 60, in test_asum
     assert_almost_equal(f([3,-4,5]),12)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: 12

 ======================================================================
 FAIL: test_dot (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/lib/blas/tests/test_blas.py", line 69, in test_dot
     assert_almost_equal(f([3,-4,5],[2,5,1]),-9)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: -9

 ======================================================================
 FAIL: test_nrm2 (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/lib/blas/tests/test_blas.py", line 80, in test_nrm2
     assert_almost_equal(f([3,-4,5]),math.sqrt(50))
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: 7.0710678118654755

 ======================================================================
 FAIL: test_basic.TestNorm.test_overflow
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_basic.py", line 579, in
 test_overflow
     assert_almost_equal(norm(a), a)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 452, in assert_almost_equal
     return assert_array_almost_equal(actual, desired, decimal, err_msg)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 800, in
 assert_array_almost_equal
     header=('Arrays are not almost equal to %d decimals' % decimal))
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 636, in assert_array_compare
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals

 (mismatch 100.0%)
  x: array(-0.0)
  y: array([  1.00000002e+20], dtype=float32)

 ======================================================================
 FAIL: test_basic.TestNorm.test_stable
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_basic.py", line 591, in test_stable
     assert_almost_equal(norm(a) - 1e4, 0.0, err_msg=msg)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
 : Result should equal either 0.0 or 0.5 (depending on implementation of
 snrm2).
  ACTUAL: -10000.0
  DESIRED: 0.0

 ======================================================================
 FAIL: test_basic.TestNorm.test_types
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_basic.py", line 566, in test_types
     assert_allclose(norm(x), np.sqrt(14), rtol=tol)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 1168, in assert_allclose
     verbose=verbose, header=header)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 636, in assert_array_compare
     raise AssertionError(msg)
 AssertionError:
 Not equal to tolerance rtol=2.38419e-06, atol=0

 (mismatch 100.0%)
  x: array(1.0842021724855044e-19)
  y: array(3.7416573867739413)

 ======================================================================
 FAIL: test_asum (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_blas.py", line 99, in test_asum
     assert_almost_equal(f([3,-4,5]),12)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: 12

 ======================================================================
 FAIL: test_dot (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_blas.py", line 109, in test_dot
     assert_almost_equal(f([3,-4,5],[2,5,1]),-9)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: -9

 ======================================================================
 FAIL: test_nrm2 (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_blas.py", line 127, in test_nrm2
     assert_almost_equal(f([3,-4,5]),math.sqrt(50))
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: 7.0710678118654755

 ======================================================================
 FAIL: test_arpack.test_symmetric_modes(True, <std-symmetric>, 'f', 2,
 'LM', None, 0.5, <class 'scipy.sparse.csr.csr_matrix'>, None, 'normal')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py",
 line 249, in eval_evec
     assert_allclose(LHS, RHS, rtol=rtol, atol=atol, err_msg=err)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 1168, in assert_allclose
     verbose=verbose, header=header)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 636, in assert_array_compare
     raise AssertionError(msg)
 AssertionError:
 Not equal to tolerance rtol=0.00178814, atol=0.000357628
 error for eigsh:standard, typ=f, which=LM, sigma=0.5, mattype=csr_matrix,
 OPpart=None, mode=normal
 (mismatch 100.0%)
  x: array([[  2.38156418e-01,  -6.75444982e+09],
        [ -1.07853470e-01,  -8.01245676e+09],
        [  1.24683023e-01,  -5.19757686e+09],...
  y: array([[  2.38156418e-01,  -5.70949789e+08],
        [ -1.07853470e-01,  -4.05829392e+08],
        [  1.24683023e-01,   6.25800146e+07],...

 <snip ... many more Arpack failures>

 ======================================================================
 FAIL: test_arpack.test_symmetric_modes(True, <gen-symmetric>, 'd', 2,
 'SA', None, 0.5, <function asarray at 0x103de9398>, None, 'cayley')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py",
 line 249, in eval_evec
     assert_allclose(LHS, RHS, rtol=rtol, atol=atol, err_msg=err)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 1168, in assert_allclose
     verbose=verbose, header=header)
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 636, in assert_array_compare
     raise AssertionError(msg)
 AssertionError:
 Not equal to tolerance rtol=4.44089e-13, atol=4.44089e-13
 error for eigsh:general, typ=d, which=SA, sigma=0.5, mattype=asarray,
 OPpart=None, mode=cayley
 (mismatch 100.0%)
  x: array([[-0.36892684, -0.01935691],
        [-0.26850996, -0.11053158],
        [-0.40976156, -0.13223572],...
  y: array([[-0.43633077, -0.01935691],
        [-0.25161386, -0.11053158],
        [-0.36756684, -0.13223572],...

 ======================================================================
 FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/special/tests/test_basic.py", line 1659, in
 test_iv_cephes_vs_amos_mass_test
     assert_(dc[k] < 2e-7, (v[k], x[k], special.iv(v[k], x[k]),
 special.iv(v[k], x[k]+0j)))
   File
 "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 34, in assert_
     raise AssertionError(msg)
 AssertionError: (189.2947429454936, 3.0238805556481037,
 4.089165443940765e-317, 0j)
 }}}

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


More information about the Scipy-tickets mailing list