Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r2344:47f0a9e503bc
Date: 2015-10-16 09:35 +0200
http://bitbucket.org/cffi/cffi/changeset/47f0a9e503bc/

Log:    win64 fix

diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py
--- a/testing/cffi0/test_verify.py
+++ b/testing/cffi0/test_verify.py
@@ -2285,7 +2285,7 @@
     #print '...'
     assert res == -500*999*3
     #print 'done'
-    if sys.platform == 'win32':
+    if sys.platform == 'win32' and sys.maxsize < 2**32:
         assert '__stdcall' in str(ffi.typeof(cb2))
         assert '__stdcall' not in str(ffi.typeof(cb1))
         py.test.raises(TypeError, lib.call1, cb2)
@@ -2411,7 +2411,7 @@
             return result;
         }
     """)
-    if sys.platform == 'win32':
+    if sys.platform == 'win32' and sys.maxsize < 2**32:
         py.test.raises(TypeError, lib.call1, lib.cb2)
         py.test.raises(TypeError, lib.call2, lib.cb1)
     pt = lib.call1(lib.cb1)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to