Skip to content

Commit 44cbe05

Browse files
committed
chore: enable the gil
1 parent dfdbc41 commit 44cbe05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/tools/run-tests

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ PYTEST_ARGS=()
2525
FREE_THREADING=""
2626
if python -c 'import sys; assert not sys._is_gil_enabled()' 2> /dev/null; then
2727
FREE_THREADING+="-ft"
28-
PYTEST_ARGS+=("--require-gil-disabled" "--threads" "${FREE_THREADING_TEST_THREADS}" "--iterations" "${FREE_THREADING_TEST_ITERATIONS}")
29-
PYTHON_GIL=0
28+
PYTEST_ARGS+=("--threads" "${FREE_THREADING_TEST_THREADS}" "--iterations" "${FREE_THREADING_TEST_ITERATIONS}")
29+
# ideally we could set this to zero, but many things in the test suite are
30+
# not built to work without the GIL
31+
PYTHON_GIL=1
3032
else
3133
PYTEST_ARGS+=("-p" "no:freethreaded")
3234
PYTHON_GIL=1

0 commit comments

Comments
 (0)