[pypy-commit] cffi default: win32 fix

arigo noreply at buildbot.pypy.org
Fri Oct 16 04:30:38 EDT 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2349:74820048ec4d
Date: 2015-10-16 10:27 +0200
http://bitbucket.org/cffi/cffi/changeset/74820048ec4d/

Log:	win32 fix

diff --git a/testing/cffi0/test_function.py b/testing/cffi0/test_function.py
--- a/testing/cffi0/test_function.py
+++ b/testing/cffi0/test_function.py
@@ -486,7 +486,8 @@
         ffi = FFI(backend=self.Backend())
         ffi.cdef("double __stdcall sin(double x);")     # stdcall ignored
         m = ffi.dlopen(lib_m)
-        if sys.platform == 'win32' and sys.maxint < 2**32:
+        if (sys.platform == 'win32' and sys.maxint < 2**32 and 
+                self.Backend is not CTypesBackend):
             assert "double(__stdcall *)(double)" in str(ffi.typeof(m.sin))
         else:
             assert "double(*)(double)" in str(ffi.typeof(m.sin))


More information about the pypy-commit mailing list