Commits

Antonio Cuni committed 68216f3

a passing test

Comments (0)

Files changed (1)

pypy/module/test_lib_pypy/ctypes_tests/test_callbacks.py

         out, err = capsys.readouterr()
         assert (out, err) == ("", "")
 
+
+    def test_callback_pyobject(self):
+        def callback(obj):
+            return obj
+
+        FUNC = CFUNCTYPE(py_object, py_object)
+        cfunc = FUNC(callback)
+        param = c_int(42)
+        assert cfunc(param) is param
+
     def test_raise_argumenterror(self):
         py.test.skip('FIXME')
         def callback(x):