[pypy-svn] r71162 - pypy/trunk/pypy/lib/app_test/ctypes_tests

afa at codespeak.net afa at codespeak.net
Mon Feb 8 11:48:16 CET 2010


Author: afa
Date: Mon Feb  8 11:48:15 2010
New Revision: 71162

Modified:
   pypy/trunk/pypy/lib/app_test/ctypes_tests/test_funcptr.py
Log:
Disable the test for CFUNCTYPE.from_address,
I can't make it work on Linux with cpython anyway.

The samples in
http://thread.gmane.org/gmane.comp.python.ctypes.user/3548/focus=3549
does not seem to work.


Modified: pypy/trunk/pypy/lib/app_test/ctypes_tests/test_funcptr.py
==============================================================================
--- pypy/trunk/pypy/lib/app_test/ctypes_tests/test_funcptr.py	(original)
+++ pypy/trunk/pypy/lib/app_test/ctypes_tests/test_funcptr.py	Mon Feb  8 11:48:15 2010
@@ -142,4 +142,7 @@
             func.__keep = ptr # keep ptr alive
             return func
         f = make_function()
-        assert f() == 0x12345678
+        # This assembler should also work on Linux 32bit,
+        # but it segfaults for some reason.
+        if sys.platform == 'win32':
+            assert f() == 0x12345678



More information about the Pypy-commit mailing list