[pypy-svn] r78762 - pypy/branch/fast-forward/lib_pypy

afa at codespeak.net afa at codespeak.net
Fri Nov 5 19:23:42 CET 2010


Author: afa
Date: Fri Nov  5 19:23:41 2010
New Revision: 78762

Modified:
   pypy/branch/fast-forward/lib_pypy/_ctypes_test.py
Log:
Hack to let test_ctypes.py run to the end


Modified: pypy/branch/fast-forward/lib_pypy/_ctypes_test.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/_ctypes_test.py	(original)
+++ pypy/branch/fast-forward/lib_pypy/_ctypes_test.py	Fri Nov  5 19:23:41 2010
@@ -1,6 +1,13 @@
 import os, sys
 import tempfile
 
+# Monkeypatch & hacks to let ctypes.tests import.
+# This should be removed at some point.
+sys.getrefcount = None
+import _ctypes
+_ctypes.PyObj_FromPtr = None
+del _ctypes
+
 def compile_shared():
     """Compile '_ctypes_test.c' into an extension module, and import it
     """



More information about the Pypy-commit mailing list