Commits

Philip Jenvey committed a863802

disable testcapimodule's instancemethod for now so it at least compiles

Comments (0)

Files changed (1)

lib_pypy/_testcapimodule.c

-/* Verbatim copy of Modules/_testcapimodule.c from CPython 3.2 */
+/* Verbatim copy of Modules/_testcapimodule.c from CPython 3.2 w/ use
+   of PyInstanceMethod disabled */
 /*
  * C Extension module to test Python interpreter C APIs.
  *
     PyModule_AddObject(m, "PY_SSIZE_T_MAX", PyLong_FromSsize_t(PY_SSIZE_T_MAX));
     PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyLong_FromSsize_t(PY_SSIZE_T_MIN));
     PyModule_AddObject(m, "SIZEOF_PYGC_HEAD", PyLong_FromSsize_t(sizeof(PyGC_Head)));
+#if 0 /* XXX: disabled for PyPy (for now) */
     Py_INCREF(&PyInstanceMethod_Type);
     PyModule_AddObject(m, "instancemethod", (PyObject *)&PyInstanceMethod_Type);
+#endif
 
     TestError = PyErr_NewException("_testcapi.error", NULL, NULL);
     Py_INCREF(TestError);