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 107ed88 commit 84c36c1Copy full SHA for 84c36c1
Modules/_testcapimodule.c
@@ -6283,11 +6283,14 @@ PyInit__testcapi(void)
6283
PyModule_AddObject(m, "instancemethod", (PyObject *)&PyInstanceMethod_Type);
6284
6285
PyModule_AddIntConstant(m, "the_number_three", 3);
6286
+ PyObject *v;
6287
#ifdef WITH_PYMALLOC
- PyModule_AddObject(m, "WITH_PYMALLOC", Py_True);
6288
+ v = Py_True;
6289
#else
- PyModule_AddObject(m, "WITH_PYMALLOC", Py_False);
6290
+ v = Py_False;
6291
#endif
6292
+ Py_INCREF(v);
6293
+ PyModule_AddObject(m, "WITH_PYMALLOC", v);
6294
6295
TestError = PyErr_NewException("_testcapi.error", NULL, NULL);
6296
Py_INCREF(TestError);
0 commit comments