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 91c15a5 commit bff5255Copy full SHA for bff5255
Modules/_testcapimodule.c
@@ -5444,11 +5444,14 @@ PyInit__testcapi(void)
5444
PyModule_AddObject(m, "instancemethod", (PyObject *)&PyInstanceMethod_Type);
5445
5446
PyModule_AddIntConstant(m, "the_number_three", 3);
5447
+ PyObject *v;
5448
#ifdef WITH_PYMALLOC
- PyModule_AddObject(m, "WITH_PYMALLOC", Py_True);
5449
+ v = Py_True;
5450
#else
- PyModule_AddObject(m, "WITH_PYMALLOC", Py_False);
5451
+ v = Py_False;
5452
#endif
5453
+ Py_INCREF(v);
5454
+ PyModule_AddObject(m, "WITH_PYMALLOC", v);
5455
5456
TestError = PyErr_NewException("_testcapi.error", NULL, NULL);
5457
Py_INCREF(TestError);
0 commit comments