[Scipy-tickets] [SciPy] #778: io.mmio and cluster.vq tests fail on non-English locale

SciPy scipy-tickets@scipy....
Tue Nov 4 17:20:22 CST 2008


#778: io.mmio and cluster.vq tests fail on non-English locale
----------------------+-----------------------------------------------------
 Reporter:  pv        |       Owner:  somebody           
     Type:  defect    |      Status:  new                
 Priority:  normal    |   Milestone:  0.8                
Component:  scipy.io  |     Version:                     
 Severity:  normal    |    Keywords:  locale cluster mmio
----------------------+-----------------------------------------------------
 The following tests in MMIO part of scipy.io and scipy.cluster fail under
 non-English locale (presumably those in which "," is the decimal
 separator).

 My guess is that the underlying reason for the failures probably is a
 locale dependency in numpy.fromfile. If so, fixing this requires first
 fixes in Numpy.

 {{{
 Traceback (most recent call last):
   File "/home/pauli/koodi/proj/scipy/scipy.git/dist/linux/lib/python2.5
 /site-pac
 kages/scipy/cluster/tests/test_vq.py", line 141, in test_kmeans2_init
     data = data.reshape((200, 2))
 ValueError: total size of new array must be unchanged
 ======================================================================
 Traceback (most recent call last):
   File "/home/pauli/koodi/proj/scipy/scipy.git/dist/linux/lib/python2.5
 /site-pac
 kages/scipy/cluster/tests/test_vq.py", line 121, in test_kmeans2_rank1
     data = data.reshape((200, 2))
 ValueError: total size of new array must be unchanged
 ======================================================================
 ... etc, see test.log-fi ...
 }}}

 (The Lapack failures in the test log are a separate issue, #777.)

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


More information about the Scipy-tickets mailing list