Skip to content

Commit 3097d2d

Browse files
committed
Fix for free-threaded Python tests
1 parent 0fc396c commit 3097d2d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ skip = "pp* *win32*"
123123
test-requires = ["pytest"]
124124
test-command = "py.test {project}/tests/"
125125

126+
# Override test command for free-threaded builds to force GIL on
127+
[[tool.cibuildwheel.overrides]]
128+
select = "cp313t-* cp314t-*"
129+
test-command = "python -X gil -m pytest {project}/tests/"
130+
126131
manylinux-x86_64-image = "manylinux_2_28"
127132
manylinux-aarch64-image = "manylinux_2_28"
128133
manylinux-pypy_x86_64-image = "manylinux_2_28"

0 commit comments

Comments
 (0)