diff options
author | Victor Stinner <vstinner@python.org> | 2022-11-13 15:04:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 15:04:33 (GMT) |
commit | bbba3f3f43a23ce30e5e943b8b4af197bc844fc3 (patch) | |
tree | 56b6d1c7b749672f6bd11b3accb75245d30f2331 /Modules/testcapi_long.h | |
parent | 0bedc28d146a282b54d8f285f3ac92e06d249cb5 (diff) | |
download | cpython-bbba3f3f43a23ce30e5e943b8b4af197bc844fc3.zip cpython-bbba3f3f43a23ce30e5e943b8b4af197bc844fc3.tar.gz cpython-bbba3f3f43a23ce30e5e943b8b4af197bc844fc3.tar.bz2 |
gh-99300: Use Py_NewRef() in Modules/ directory (#99440)
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and
Py_XNewRef() in test C files of the Modules/ directory.
Diffstat (limited to 'Modules/testcapi_long.h')
-rw-r--r-- | Modules/testcapi_long.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/testcapi_long.h b/Modules/testcapi_long.h index 6bddad7..1432581 100644 --- a/Modules/testcapi_long.h +++ b/Modules/testcapi_long.h @@ -202,6 +202,5 @@ TESTNAME(PyObject *error(const char*)) Py_DECREF(Py_None); } - Py_INCREF(Py_None); - return Py_None; + return Py_NewRef(Py_None); } |