[Numpy-tickets] [NumPy] #719: No test for 'fromregex' in r4960

NumPy numpy-tickets@scipy....
Sat Apr 12 12:28:36 CDT 2008


#719: No test for 'fromregex' in r4960
----------------------+-----------------------------------------------------
 Reporter:  stefan    |        Owner:  oliphant
     Type:  defect    |       Status:  new     
 Priority:  normal    |    Milestone:  1.0.5   
Component:  Other     |      Version:  none    
 Severity:  critical  |   Resolution:          
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by pv):

 fromregex apparently doesn't work: it tries to reference array instead of
 np.array, and the use of kwds.values() instead of kwds.items() is also
 suspect. Patch with tests is attached.

 One of the tests fails right now (test_record_2), because there is a
 problem with np.array and int32:
 {{{
 >>> import numpy as np
 >>> np.array([('123',), ('456',)], dtype=[('num', np.int64)])
 array([(123L,), (456L,)],
       dtype=[('num', '<i8')])
 >>> np.array([('123',), ('456',)], dtype=[('num', np.int32)])
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 TypeError: expected a readable buffer object
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/719#comment:4>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list