[Scipy-tickets] [SciPy] #1555: decomp_schur test failure under python2.5

SciPy Trac scipy-tickets@scipy....
Sat Nov 5 13:16:23 CDT 2011


#1555: decomp_schur test failure under python2.5
--------------------------+-------------------------------------------------
 Reporter:  rgommers      |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:  0.10.0  
Component:  scipy.linalg  |     Version:  devel   
 Keywords:                |  
--------------------------+-------------------------------------------------
 This works fine in Python >= 2.6, but fails with 2.5 on both Windows and
 OS X.

 Floats do have the .real attribute also in 2.5, so it's something in
 {{{gees}}}.
 {{{
 ======================================================================
 ERROR: test_sort (test_decomp.TestSchur)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
 /site-packages/scipy/linalg/tests/test_decomp.py", line 1230, in test_sort
     s,u,sdim = schur(a,sort='lhp')
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
 /site-packages/scipy/linalg/decomp_schur.py", line 118, in schur
     sort_t=sort_t)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
 /site-packages/scipy/linalg/decomp_schur.py", line 106, in <lambda>
     sfunction = lambda x: (x.real < 0.0)
 AttributeError: 'float' object has no attribute 'real'
 }}}

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


More information about the Scipy-tickets mailing list