Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[3.11] gh-92678: Correct return values for errors in PyInit__testcapi
  • Loading branch information
pablogsal committed Aug 4, 2022
commit a0d9e51f8cc73868c3a29386ce48aae830a32b00
4 changes: 2 additions & 2 deletions Modules/_testcapimodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down