Author: Antonio Cuni <anto.c...@gmail.com> Branch: reflex-support Changeset: r46888:910cc29fa8db Date: 2011-08-29 15:48 +0200 http://bitbucket.org/pypy/pypy/changeset/910cc29fa8db/
Log: backout 3719dbebe35c, it belongs to default diff --git a/lib_pypy/_ctypes/function.py b/lib_pypy/_ctypes/function.py --- a/lib_pypy/_ctypes/function.py +++ b/lib_pypy/_ctypes/function.py @@ -469,8 +469,7 @@ newargs = [] for argtype, arg in zip(argtypes, args): param = argtype.from_param(arg) - _type_ = getattr(argtype, '_type_', None) - if _type_ == 'P': # special-case for c_void_p + if argtype._type_ == 'P': # special-case for c_void_p param = param._get_buffer_value() elif self._is_primitive(argtype): param = param.value 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 @@ -150,6 +150,7 @@ class TestMoreCallbacks(BaseCTypesTestChecker): def test_callback_with_struct_argument(self): + py.test.skip("callbacks with struct arguments not implemented yet") class RECT(Structure): _fields_ = [("left", c_int), ("top", c_int), ("right", c_int), ("bottom", c_int)] _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit