Skip to content

Commit

Permalink
fix gil-disabled test
Browse files Browse the repository at this point in the history
  • Loading branch information
neonene committed Apr 28, 2024
1 parent 2bdf01c commit bead431
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Modules/_testmultiphase.c
Expand Up @@ -964,12 +964,11 @@ datetime_capi_client_exec(PyObject *m)
return -1;
}
PyDateTime_IMPORT;
if (PyDateTimeAPI == NULL) {
return -2;
}
PyErr_Clear();
if (PyDateTimeAPI != PyCapsule_Import(PyDateTime_CAPSULE_NAME, 0)) {
return -3;
return -1;
}
PyErr_Clear();
return 0;
}

Expand Down

0 comments on commit bead431

Please sign in to comment.