Author: mattip <[email protected]>
Branch: numpypy-longdouble
Changeset: r59135:76d0d3425c6e
Date: 2012-11-30 00:04 +0200
http://bitbucket.org/pypy/pypy/changeset/76d0d3425c6e/
Log: add test, but it is incorrectly skipped for now
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
@@ -2133,6 +2133,12 @@
assert j[0] == 12
k = fromstring(self.float16val, dtype=float16)
assert k[0] == float16(5.)
+ try:
+ from _numpypy import float96
+ except:
+ skip('no float96 on this platform/compiler, maybe try float128?')
+ k = fromstring('\x00\x00\x00\x00\x00\x00\x00\xa0\x01@\x00\x00',
dtype=float96)
+ assert k[0] == float96(5.)
def test_fromstring_invalid(self):
from _numpypy import fromstring, uint16, uint8, int32
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit