[NumPy-Tickets] [NumPy] #1326: FAIL: test_buffer_hashlib (test_regression.TestRegression)

NumPy Trac numpy-tickets@scipy....
Wed Jan 20 15:44:39 CST 2010


#1326: FAIL: test_buffer_hashlib (test_regression.TestRegression)
----------------------+-----------------------------------------------------
 Reporter:  sienkiew  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  normal    |   Milestone:          
Component:  Other     |     Version:          
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by NeilMuller):

 Given that:

 >>> x = np.array([1,2,3], dtype=np.dtype('<i4'))
 >>> md5.new(x).hexdigest()
 '2a1dd1e1e59d0a384c26951e316cd7e6'

 >>> x = np.array([1,2,3], dtype=np.dtype('>i4'))
 >>> md5.new(x).hexdigest()
 '1264d4a9f74dc462700fd163e3ff09a6'

 It really looks like the test should specify the correct byte order.

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


More information about the NumPy-Tickets mailing list