[pypy-commit] pypy cpyext-ext: Fix appdirect test: CPython does not have a dictionary for C types.

amauryfa pypy.commits at gmail.com
Tue Dec 29 20:30:37 EST 2015


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: cpyext-ext
Changeset: r81497:5f5896c1b060
Date: 2015-12-30 01:43 +0100
http://bitbucket.org/pypy/pypy/changeset/5f5896c1b060/

Log:	Fix appdirect test: CPython does not have a dictionary for C types.
	(cpyext should maybe do the same, but this is another story)

diff --git a/pypy/module/cpyext/test/foo.c b/pypy/module/cpyext/test/foo.c
--- a/pypy/module/cpyext/test/foo.c
+++ b/pypy/module/cpyext/test/foo.c
@@ -150,6 +150,7 @@
         if (v == -1 && PyErr_Occurred())
             return -1;
         self->foo = v;
+        return 0;
     }
     return PyObject_GenericSetAttr((PyObject *)self, name, value);
 }


More information about the pypy-commit mailing list