[Python-checkins] cpython (3.4): Issue #22588: Fix typo in _testcapi.test_incref_decref_API()
victor.stinner
python-checkins at python.org
Thu Oct 9 22:17:05 CEST 2014
https://hg.python.org/cpython/rev/5d87a6b38422
changeset: 92893:5d87a6b38422
branch: 3.4
parent: 92891:58601c36a357
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Oct 09 22:15:41 2014 +0200
summary:
Issue #22588: Fix typo in _testcapi.test_incref_decref_API()
files:
Modules/_testcapimodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -2699,7 +2699,7 @@
test_incref_decref_API(PyObject *ob)
{
PyObject *obj = PyLong_FromLong(0);
- Py_IncRef(ob);
+ Py_IncRef(obj);
Py_DecRef(obj);
Py_DecRef(obj);
Py_RETURN_NONE;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list