8000 FAIL: test_buffer_hashlib (test_regression.TestRegression) (Trac #1326) · Issue #1924 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

FAIL: test_buffer_hashlib (test_regression.TestRegression) (Trac #1326) #1924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “S 8000 ign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thouis opened this issue Oct 19, 2012 · 4 comments
Closed

Comments

@thouis
Copy link
Contributor
thouis commented Oct 19, 2012

Original ticket http://projects.scipy.org/numpy/ticket/1326 on 2009-12-11 by @stsci-sienkiew, assigned to unknown.

======================================================================
FAIL: test_buffer_hashlib (test_regression.TestRegression)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/stsci/pyssgdev/2.5.4/numpy/core/tests/test_regression.py", line 1255, in test_buffer_hashlib
    assert_equal(md5(x).hexdigest(), '2a1dd1e1e59d0a384c26951e316cd7e6')
  File "/usr/stsci/pyssgdev/2.5.4/numpy/testing/utils.py", line 305, in assert_equal
    raise AssertionError(msg)
AssertionError: 
Items are not equal:
 ACTUAL: '1264d4a9f74dc462700fd163e3ff09a6'
 DESIRED: '2a1dd1e1e59d0a384c26951e316cd7e6'

----------------------------------------------------------------------

Python 2.5.4, 32 bit executable

Solaris 8

Not on Red Hat Enterprise Linux, 4 / 32 bit. Not on RHE 4 / 64 bit. Not on RHE 5 / 64 bit. Not on Mac OSX Leopard, 32 bit python.

(That is, failing on the big-endian SPARC, passing on a bunch of x86 systems.)

NumPy version 1.5.0.dev7996

@thouis
Copy link
Contributor Author
thouis commented Oct 19, 2012

@drnlm wrote on 2010-01-20

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.

@thouis
Copy link
Contributor Author
thouis commented Oct 19, 2012

@drnlm wrote on 2010-01-20

Trivial patch using np.dtype('<i4')

@thouis
Copy link
Contributor Author
thouis commented Oct 19, 2012

Attachment added by @drnlm on 2010-01-21: 1326_patch.diff

@thouis
Copy link
Contributor Author
thouis commented Oct 19, 2012

@charris wrote on 2010-02-14

Patch applied in r8110.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0