summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-10-09 20:15:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-10-09 20:15:41 (GMT)
commitfc6a90a92e42717268b7e927c158ba341e579106 (patch)
treeebc00f87f6ffdf4df561b8fef8be65ea3890a352 /Modules
parent484df0075ab1082d154e934399c16ba3c80a6ccf (diff)
downloadcpython-fc6a90a92e42717268b7e927c158ba341e579106.zip
cpython-fc6a90a92e42717268b7e927c158ba341e579106.tar.gz
cpython-fc6a90a92e42717268b7e927c158ba341e579106.tar.bz2
Issue #22588: Fix typo in _testcapi.test_incref_decref_API()
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testcapimodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 538322d..6c17a41 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -2699,7 +2699,7 @@ static PyObject *
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;