summaryrefslogtreecommitdiffstats
path: root/Modules/_testlimitedcapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_testlimitedcapi.c')
-rw-r--r--Modules/_testlimitedcapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_testlimitedcapi.c b/Modules/_testlimitedcapi.c
index 598071f..f88476f 100644
--- a/Modules/_testlimitedcapi.c
+++ b/Modules/_testlimitedcapi.c
@@ -25,6 +25,9 @@ PyInit__testlimitedcapi(void)
if (mod == NULL) {
return NULL;
}
+#ifdef Py_GIL_DISABLED
+ PyModule_ExperimentalSetGIL(mod, Py_MOD_GIL_NOT_USED);
+#endif
if (_PyTestLimitedCAPI_Init_Abstract(mod) < 0) {
return NULL;