[pypy-commit] pypy default: a failing test of byteswap on scalar
mattip
noreply at buildbot.pypy.org
Thu Feb 7 22:32:17 CET 2013
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r60940:9cf628e3dfc6
Date: 2013-02-07 17:43 +0200
http://bitbucket.org/pypy/pypy/changeset/9cf628e3dfc6/
Log: a failing test of byteswap on scalar
diff --git a/pypy/module/micronumpy/test/test_numarray.py b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -1700,6 +1700,12 @@
n = a.dtype.itemsize
assert s1[n-1] == s2[0]
+ a = array(0., dtype='longfloat')
+ s1 = map(ord, a.tostring())
+ s2 = map(ord, a.byteswap().tostring())
+ n = a.dtype.itemsize
+ assert s1[n-1] == s2[0]
+
def test_clip(self):
from _numpypy import array
a = array([1, 2, 17, -3, 12])
More information about the pypy-commit
mailing list