[pypy-commit] pypy py3k: Add missing CmpType.tp_new

rlamy pypy.commits at gmail.com
Tue Oct 4 13:41:34 EDT 2016


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3k
Changeset: r87574:e58c283dec9e
Date: 2016-10-04 18:40 +0100
http://bitbucket.org/pypy/pypy/changeset/e58c283dec9e/

Log:	Add missing CmpType.tp_new

diff --git a/pypy/module/cpyext/test/comparisons.c b/pypy/module/cpyext/test/comparisons.c
--- a/pypy/module/cpyext/test/comparisons.c
+++ b/pypy/module/cpyext/test/comparisons.c
@@ -87,6 +87,7 @@
 {
     PyObject *m, *d;
 
+    CmpType.tp_new = PyType_GenericNew;
     if (PyType_Ready(&CmpType) < 0)
         return NULL;
     m = PyModule_Create(&moduledef);


More information about the pypy-commit mailing list