Author: Ronan Lamy <[email protected]>
Branch: rffi-parser
Changeset: r89191:a38dc4f4ab40
Date: 2016-12-20 00:43 +0000
http://bitbucket.org/pypy/pypy/changeset/a38dc4f4ab40/

Log:    Fix test

diff --git a/pypy/module/cpyext/test/test_methodobject.py 
b/pypy/module/cpyext/test/test_methodobject.py
--- a/pypy/module/cpyext/test/test_methodobject.py
+++ b/pypy/module/cpyext/test/test_methodobject.py
@@ -2,9 +2,8 @@
 from pypy.module.cpyext.test.test_cpyext import AppTestCpythonExtensionBase
 from pypy.module.cpyext.methodobject import PyMethodDef
 from pypy.module.cpyext.api import ApiFunction
-from pypy.module.cpyext.pyobject import PyObject, make_ref, Py_DecRef
-from pypy.module.cpyext.methodobject import (
-    PyDescr_NewMethod, PyCFunction_typedef)
+from pypy.module.cpyext.pyobject import PyObject
+from pypy.module.cpyext.methodobject import PyCFunction
 from rpython.rtyper.lltypesystem import rffi, lltype
 
 class AppTestMethodObject(AppTestCpythonExtensionBase):
@@ -105,8 +104,7 @@
         ml = lltype.malloc(PyMethodDef, flavor='raw', zero=True)
         namebuf = rffi.cast(rffi.CONST_CCHARP, rffi.str2charp('func'))
         ml.c_ml_name = namebuf
-        ml.c_ml_meth = rffi.cast(PyCFunction_typedef,
-                                 c_func.get_llhelper(space))
+        ml.c_ml_meth = rffi.cast(PyCFunction, c_func.get_llhelper(space))
 
         method = api.PyDescr_NewMethod(space.w_str, ml)
         assert repr(method).startswith(
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to