Skip to content

Commit 2c19987

Browse files
authored
gh-118729: Temporarily skip test_multiprocessing_pool_circular_import (#118732)
The `pool_in_threads.py` test file may crash in free-threaded builds, which can lead to the Tsan test hanging. Skip it for now until we fix the underlying issue.
1 parent f58833e commit 2c19987

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_importlib/test_threaded_import.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from test.support import verbose
1818
from test.support.import_helper import forget, mock_register_at_fork
1919
from test.support.os_helper import (TESTFN, unlink, rmtree)
20-
from test.support import script_helper, threading_helper
20+
from test.support import script_helper, threading_helper, requires_gil_enabled
2121

2222
threading_helper.requires_working_threading(module=True)
2323

@@ -248,6 +248,9 @@ def test_concurrent_futures_circular_import(self):
248248
'partial', 'cfimport.py')
249249
script_helper.assert_python_ok(fn)
250250

251+
# gh-118727 and gh-118729: pool_in_threads.py may crash in free-threaded
252+
# builds, which can hang the Tsan test so temporarily skip it for now.
253+
@requires_gil_enabled("gh-118727: test may crash in free-threaded builds")
251254
def test_multiprocessing_pool_circular_import(self):
252255
# Regression test for bpo-41567
253256
fn = os.path.join(os.path.dirname(__file__),

0 commit comments

Comments
 (0)