Skip to content

Commit b84f13c

Browse files
committed
Skip threads test on the freethreading build
1 parent 7c12d94 commit b84f13c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/buildwheel.yml

+6
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ jobs:
8888
# and python-requires in pyproject.toml.
8989
python-version: ['3.11', '3.12', '3.13', '3.13t'] # , 'pypy3.10']
9090

91+
# XXX: Maybe this exclude can be removed when changing from
92+
# Quansight-Labs/setup-python...
93+
exclude:
94+
- os: ubuntu-24.04-arm
95+
python-version: '3.13t'
96+
9197
steps:
9298
# Quansight-labs/setup-python is needed for 3.13t until a new version of
9399
# actions/setup-python (>5.4.0) is released.

src/flint/test/test_all.py

+15
Original file line numberDiff line numberDiff line change
@@ -4739,6 +4739,21 @@ def test_fq_default_poly():
47394739

47404740

47414741
def test_python_threads():
4742+
#
4743+
# https://github.com/flintlib/python-flint/issues/224
4744+
#
4745+
# XXX: This test crashes under the free-threading mode because of memory
4746+
# corruption.
4747+
#
4748+
# It is not clear if this should be fixed or if mutating
4749+
# matrices/polynomials that are shared between multiple threads should just
4750+
# be disallowed.
4751+
#
4752+
4753+
# Skip the test on the free-threaded build...
4754+
import sys
4755+
if sys.version_info[:2] >= (3, 13) and not sys._is_gil_enabled():
4756+
return
47424757

47434758
from threading import Thread
47444759

0 commit comments

Comments
 (0)