Skip to content

Commit

Permalink
[3.11] gh-92678: Correct return values for errors in PyInit__testcapi (
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored Aug 4, 2022
1 parent 4d37b42 commit cb02dc0
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit cb02dc0

Please sign in to comment.