[pypy-svn] r51526 - pypy/dist/pypy/lib/app_test/ctypes

fijal at codespeak.net fijal at codespeak.net
Fri Feb 15 14:28:21 CET 2008


Author: fijal
Date: Fri Feb 15 14:28:20 2008
New Revision: 51526

Modified:
   pypy/dist/pypy/lib/app_test/ctypes/test_keepalive.py
Log:
another keepalive test


Modified: pypy/dist/pypy/lib/app_test/ctypes/test_keepalive.py
==============================================================================
--- pypy/dist/pypy/lib/app_test/ctypes/test_keepalive.py	(original)
+++ pypy/dist/pypy/lib/app_test/ctypes/test_keepalive.py	Fri Feb 15 14:28:20 2008
@@ -37,7 +37,12 @@
         assert p._objects.keys() == ['1']
         assert p._objects['1'].value == 3
 
-    def test_char_p(self):
+    def test_primitive(self):
         assert c_char_p("abc")._objects == "abc"
         assert c_int(3)._objects is None
-    
+
+    def test_cfunc(self):
+        def f():
+            pass
+        cf = CFUNCTYPE(c_int, c_int)(f)
+        assert cf._objects == {'0':cf}



More information about the Pypy-commit mailing list