summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-05-07 19:27:28 (GMT)
committerGitHub <noreply@github.com>2024-05-07 19:27:28 (GMT)
commit2c19987db525f61e85dadb40b368c97254adc7cc (patch)
treed1c740018cfc6a059995916733904072fc3c706f /Lib/test
parentf58833ebf8161aaa33844d63fb51b1575180cfbb (diff)
downloadcpython-2c19987db525f61e85dadb40b368c97254adc7cc.zip
cpython-2c19987db525f61e85dadb40b368c97254adc7cc.tar.gz
cpython-2c19987db525f61e85dadb40b368c97254adc7cc.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_importlib/test_threaded_import.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/test_threaded_import.py b/Lib/test/test_importlib/test_threaded_import.py
index 9af1e4d..3477112 100644
--- a/Lib/test/test_importlib/test_threaded_import.py
+++ b/Lib/test/test_importlib/test_threaded_import.py
@@ -17,7 +17,7 @@ from test import support
from test.support import verbose
from test.support.import_helper import forget, mock_register_at_fork
from test.support.os_helper import (TESTFN, unlink, rmtree)
-from test.support import script_helper, threading_helper
+from test.support import script_helper, threading_helper, requires_gil_enabled
threading_helper.requires_working_threading(module=True)
@@ -248,6 +248,9 @@ class ThreadedImportTests(unittest.TestCase):
'partial', 'cfimport.py')
script_helper.assert_python_ok(fn)
+ # gh-118727 and gh-118729: pool_in_threads.py may crash in free-threaded
+ # builds, which can hang the Tsan test so temporarily skip it for now.
+ @requires_gil_enabled("gh-118727: test may crash in free-threaded builds")
def test_multiprocessing_pool_circular_import(self):
# Regression test for bpo-41567
fn = os.path.join(os.path.dirname(__file__),