Skip to content

Commit 0a00cfe

Browse files
committed
style changes
1 parent b6ff4ad commit 0a00cfe

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Diff for: src/markupsafe/_speedups.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,14 @@ PyMODINIT_FUNC
191191
PyInit__speedups(void)
192192
{
193193
PyObject *m = PyModule_Create(&module_definition);
194+
194195
if (m == NULL) {
195196
return NULL;
196197
}
197-
#ifdef Py_GIL_DISABLED
198+
199+
#ifdef Py_GIL_DISABLED
198200
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
199-
#endif
201+
#endif
202+
200203
return m;
201204
}

Diff for: tests/conftest.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717

1818
def pytest_report_header() -> list[str]:
1919
"""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 []
2324

2425

2526
@pytest.fixture(

0 commit comments

Comments
 (0)