We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bcc3fa commit 713eb18Copy full SHA for 713eb18
1 file changed
Lib/test/_testcppext.cpp
@@ -77,6 +77,9 @@ test_api_casts(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
77
// gh-93442: Pass 0 as NULL for PyObject*
78
Py_XINCREF(0);
79
Py_XDECREF(0);
80
+ // ensure that nullptr works too
81
+ Py_XINCREF(nullptr);
82
+ Py_XDECREF(nullptr);
83
84
Py_DECREF(obj);
85
Py_RETURN_NONE;
0 commit comments