Author: Armin Rigo <[email protected]>
Branch: cpyext-gc-support
Changeset: r80425:f35fb68c3c92
Date: 2015-10-24 16:22 +0200
http://bitbucket.org/pypy/pypy/changeset/f35fb68c3c92/

Log:    improve

diff --git a/pypy/module/cpyext/test/test_cpyext.py 
b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -669,8 +669,10 @@
                 return NULL;
             refcnt_after = true_obj->ob_refcnt;
             Py_DECREF(tup);
-            fprintf(stderr, "REFCNT2 %i %i\\n", refcnt, refcnt_after);
-            return PyBool_FromLong(refcnt_after == refcnt + 1);
+            fprintf(stderr, "REFCNT2 %i %i %i\\n", refcnt, refcnt_after,
+                    true_obj->ob_refcnt);
+            return PyBool_FromLong(refcnt_after == refcnt + 1 &&
+                                   refcnt == true_obj->ob_refcnt);
         }
 
         static PyMethodDef methods[] = {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to