[pypy-commit] cffi win32: visual studio long double is equivalent to double

mattip noreply at buildbot.pypy.org
Wed Aug 22 11:56:05 CEST 2012


Author: mattip
Branch: win32
Changeset: r866:6c0bd2e916c5
Date: 2012-08-22 12:53 +0300
http://bitbucket.org/cffi/cffi/changeset/6c0bd2e916c5/

Log:	visual studio long double is equivalent to double

diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -104,6 +104,8 @@
 def test_longdouble_precision():
     # Test that we don't loose any precision of 'long double' when
     # passing through Python and CFFI.
+    if ffi.sizeof("long double")==ffi.sizeof("double"):
+        py.test.skip('"long double" is no more precise than "double"')
     ffi = FFI()
     ffi.cdef("long double step1(long double x);")
     lib = ffi.verify("""


More information about the pypy-commit mailing list