Author: Amaury Forgeot d'Arc <amaur...@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);
 }
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to