Skip to content

Commit 424d56f

Browse files
committed
Mark json with Py_MOD_GIL_NOT_USED & remove PYTHON_GIL env var from ci test job
1 parent 4363dc3 commit 424d56f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/unit-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,6 @@ jobs:
388388
389389
- name: Run Tests
390390
uses: ./.github/actions/run-tests
391-
env:
392-
PYTHON_GIL: 0
393391

394392
# NOTE: this job must be kept in sync with the Pyodide build job in wheels.yml
395393
emscripten:

pandas/_libs/src/vendored/ujson/python/ujson.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ PyMODINIT_FUNC PyInit_json(void) {
384384
return NULL;
385385
}
386386

387+
#ifdef Py_GIL_DISABLED
388+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
389+
#endif
390+
387391
#ifndef PYPY_VERSION
388392
PyObject *mod_decimal = PyImport_ImportModule("decimal");
389393
if (mod_decimal) {

0 commit comments

Comments
 (0)