File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -191,11 +191,14 @@ PyMODINIT_FUNC
191
191
PyInit__speedups (void )
192
192
{
193
193
PyObject * m = PyModule_Create (& module_definition );
194
+
194
195
if (m == NULL ) {
195
196
return NULL ;
196
197
}
197
- #ifdef Py_GIL_DISABLED
198
+
199
+ #ifdef Py_GIL_DISABLED
198
200
PyUnstable_Module_SetGIL (m , Py_MOD_GIL_NOT_USED );
199
- #endif
201
+ #endif
202
+
200
203
return m ;
201
204
}
Original file line number Diff line number Diff line change 17
17
18
18
def pytest_report_header () -> list [str ]:
19
19
"""Return a list of strings to be displayed in the header of the report."""
20
- if sys .version_info < (3 , 13 ):
21
- return []
22
- return [f"Free-threaded: { not sys ._is_gil_enabled ()} " ]
20
+ if sys .version_info >= (3 , 13 ):
21
+ return [f"Free-threaded: { not sys ._is_gil_enabled ()} " ]
22
+
23
+ return []
23
24
24
25
25
26
@pytest .fixture (
You can’t perform that action at this time.
0 commit comments