From fc6a90a92e42717268b7e927c158ba341e579106 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 9 Oct 2014 22:15:41 +0200 Subject: [PATCH] Issue #22588: Fix typo in _testcapi.test_incref_decref_API() --- Modules/_testcapimodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 538322db56..6c17a4155e 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; -- 2.40.0