[pypy-commit] pypy default: a passing test

antocuni noreply at buildbot.pypy.org
Wed Jul 27 13:24:24 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r46010:68216f3eb946
Date: 2011-07-27 12:13 +0200
http://bitbucket.org/pypy/pypy/changeset/68216f3eb946/

Log:	a passing test

diff --git a/pypy/module/test_lib_pypy/ctypes_tests/test_callbacks.py b/pypy/module/test_lib_pypy/ctypes_tests/test_callbacks.py
--- a/pypy/module/test_lib_pypy/ctypes_tests/test_callbacks.py
+++ b/pypy/module/test_lib_pypy/ctypes_tests/test_callbacks.py
@@ -235,6 +235,16 @@
         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):


More information about the pypy-commit mailing list