cpython/Lib/test/test_cppext
Victor Stinner a4ab2c1c69
[3.13] gh-121617: Fix Py_CLEAR() in C++: replace NULL with _Py_NULL (#157067) (#157189)
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 36c7440c48)
2026-09-08 15:17:38 +00:00
..
__init__.py
extension.cpp
setup.py