Author: Antonio Cuni <[email protected]>
Branch: faster-rstruct
Changeset: r80872:783361f5f31e
Date: 2015-11-23 21:40 +0100
http://bitbucket.org/pypy/pypy/changeset/783361f5f31e/
Log: skip this test on some platforms
diff --git a/rpython/rlib/test/test_strstorage.py
b/rpython/rlib/test/test_strstorage.py
--- a/rpython/rlib/test/test_strstorage.py
+++ b/rpython/rlib/test/test_strstorage.py
@@ -1,7 +1,7 @@
import py
import struct
from rpython.rtyper.lltypesystem import lltype, rffi
-from rpython.rlib.strstorage import str_storage_getitem
+from rpython.rlib.strstorage import str_storage_getitem, str_storage_supported
from rpython.rlib.rarithmetic import r_singlefloat
from rpython.rtyper.test.tool import BaseRtypingTest
@@ -22,6 +22,8 @@
assert int(x) == 43
def test_float(self):
+ if not str_storage_supported(lltype.Float):
+ py.test.skip('str_storage_getitem(lltype.Float) not supported on
this machine')
buf = struct.pack('@dd', 12.3, 45.6)
size = struct.calcsize('@d')
assert self.str_storage_getitem(lltype.Float, buf, 0) == 12.3
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit