mirror of
https://github.com/python/cpython.git
synced 2026-11-09 01:31:24 +08:00
gh-121617: Fix Py_CLEAR() in C++: replace NULL with _Py_NULL (#157067) * Enhance Py_CLEAR() test in test_cext and test_cppext. Check that Py_CLEAR(obj) sets obj to NULL. * Add also tests on Py_SETREF() and Py_BEGIN_CRITICAL_SECTION(). (cherry picked from commit 36c7440c480da622735788af656c728af28cd9eb)