[NumPy-Tickets] [NumPy] #1479: test_universal_newline has string bug in python 3.1

NumPy Trac numpy-tickets@scipy....
Sat May 8 11:36:39 CDT 2010


#1479: test_universal_newline has string bug in python 3.1
------------------------+---------------------------------------------------
  Reporter:  charris    |       Owner:  somebody
      Type:  defect     |      Status:  closed  
  Priority:  normal     |   Milestone:  2.0.0   
 Component:  numpy.lib  |     Version:          
Resolution:  fixed      |    Keywords:          
------------------------+---------------------------------------------------
Changes (by pv):

  * status:  new => closed
  * resolution:  => fixed
  * component:  Other => numpy.lib


Old description:

> {{{
> ERROR: test_universal_newline (test_io.TestLoadTxt)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.1/site-
> packages/numpy/lib/tests/test_io.py", line 412, in test_universal_newline
>     data = np.loadtxt(name)
>   File "/usr/local/lib/python3.1/site-packages/numpy/lib/npyio.py", line
> 632, in loadtxt
>     first_vals = split_line(first_line)
>   File "/usr/local/lib/python3.1/site-packages/numpy/lib/npyio.py", line
> 610, in split_line
>     line = line.split(comments)[0].strip()
> TypeError: Can't convert 'bytes' object to str implicitly
>
> }}}

New description:

 {{{
 ERROR: test_universal_newline (test_io.TestLoadTxt)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/local/lib/python3.1/site-
 packages/numpy/lib/tests/test_io.py", line 412, in test_universal_newline
     data = np.loadtxt(name)
   File "/usr/local/lib/python3.1/site-packages/numpy/lib/npyio.py", line
 632, in loadtxt
     first_vals = split_line(first_line)
   File "/usr/local/lib/python3.1/site-packages/numpy/lib/npyio.py", line
 610, in split_line
     line = line.split(comments)[0].strip()
 TypeError: Can't convert 'bytes' object to str implicitly

 }}}

--

Comment:

 Should be fixed in r8395

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1479#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list