Author: mattip <[email protected]>
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])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit