mirror of
https://github.com/python/cpython
synced 2026-11-06 09:02:40 +03: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
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| extension.c | ||
| setup.py | ||