[3.11] gh-92678: Correct return values for errors in PyInit__testcapi (#95664)

This commit is contained in:
Pablo Galindo Salgado 2022-08-04 22:44:06 +01:00 committed by GitHub
parent 4d37b42295
commit cb02dc0872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -7824,7 +7824,7 @@ PyInit__testcapi(void)
PyObject *HeapCTypeWithDict2 = PyType_FromSpec(&HeapCTypeWithDict2_spec);
if (HeapCTypeWithDict2 == NULL) {
return -1;
return NULL;
}
PyModule_AddObject(m, "HeapCTypeWithDict2", HeapCTypeWithDict2);
@ -7848,7 +7848,7 @@ PyInit__testcapi(void)
PyObject *HeapCTypeWithWeakref2 = PyType_FromSpec(&HeapCTypeWithWeakref2_spec);
if (HeapCTypeWithWeakref2 == NULL) {
return -1;
return NULL;
}
PyModule_AddObject(m, "HeapCTypeWithWeakref2", HeapCTypeWithWeakref2);