Skip to content

Commit

Permalink
[3.11] pythongh-92678: Correct return values for errors in PyInit__te…
Browse files Browse the repository at this point in the history
…stcapi
  • Loading branch information
pablogsal committed Aug 4, 2022
1 parent f5011df commit a0d9e51
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 a0d9e51

Please sign in to comment.