[Scipy-tickets] [SciPy] #736: ERROR: test_mio.test_gzip_simple

SciPy scipy-tickets@scipy....
Sat Sep 6 06:15:01 CDT 2008


#736: ERROR: test_mio.test_gzip_simple
----------------------+-----------------------------------------------------
 Reporter:  nils      |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:  0.7.0   
Component:  scipy.io  |     Version:  devel   
 Severity:  normal    |    Keywords:          
----------------------+-----------------------------------------------------
 This is related to python2.4. I cannot reproduce the error with python2.5.
 {{{
 ======================================================================
 ERROR: test_mio.test_gzip_simple
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.4/site-
 packages/nose-0.10.3-py2.4.egg/nose/case.py", line 182, in runTest
     self.test(*self.arg)
   File "/usr/lib/python2.4/site-
 packages/scipy/io/matlab/tests/test_mio.py", line 263, in test_gzip_simple
     actual = loadmat(mat_stream)
   File "/usr/lib/python2.4/site-packages/scipy/io/matlab/mio.py", line 96,
 in loadmat
     matfile_dict = MR.get_variables()
   File "/usr/lib/python2.4/site-packages/scipy/io/matlab/miobase.py", line
 269, in get_variables
     getter = self.matrix_getter_factory()
   File "/usr/lib/python2.4/site-packages/scipy/io/matlab/mio4.py", line
 199, in matrix_getter_factory
     return self._array_reader.matrix_getter_factory()
   File "/usr/lib/python2.4/site-packages/scipy/io/matlab/mio4.py", line
 66, in matrix_getter_factory
     header['name'] = self.read_ztstring(data['namlen'])
   File "/usr/lib/python2.4/site-packages/scipy/io/matlab/miobase.py", line
 81, in read_ztstring
     return self.mat_stream.read(num_bytes).strip('\x00')
   File "/usr/lib/python2.4/gzip.py", line 230, in read
     chunk = self.extrabuf[:size]
 TypeError: slice indices must be integers
 }}}

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


More information about the Scipy-tickets mailing list