Skip to content

Commit b18485e

Browse files
committed
1 parent f7b71e7 commit b18485e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/python-nightly.yml

-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ jobs:
8686
- name: "Check out the repo"
8787
uses: "actions/checkout@v4"
8888

89-
- name: "Set PYTHON_GIL"
90-
if: "${{ matrix.nogil }}"
91-
run: |
92-
echo "PYTHON_GIL=0" >> $GITHUB_ENV
93-
9489
- name: "Install ${{ matrix.python-version }} with deadsnakes"
9590
uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494
9691
if: "!startsWith(matrix.python-version, 'pypy-')"

coverage/ctracer/module.c

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ PyInit_tracer(void)
3131
return NULL;
3232
}
3333

34+
#ifdef Py_GIL_DISABLED
35+
PyUnstable_Module_SetGIL(mod, Py_MOD_GIL_NOT_USED);
36+
#endif
37+
3438
if (CTracer_intern_strings() < 0) {
3539
return NULL;
3640
}

0 commit comments

Comments
 (0)