[pypy-commit] pypy cpyext-gc-support: improve
arigo
noreply at buildbot.pypy.org
Sat Oct 24 10:22:26 EDT 2015
Author: Armin Rigo <arigo at tunes.org>
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[] = {
More information about the pypy-commit
mailing list