]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125451: Skip concurrent.futures test_processes_terminate() (#125533)
authorVictor Stinner <vstinner@python.org>
Tue, 15 Oct 2024 15:42:55 +0000 (17:42 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Oct 2024 15:42:55 +0000 (15:42 +0000)
The test hangs randomly. It tries to serialize local lock and a local
function which are not possible.

Lib/test/test_concurrent_futures/test_shutdown.py

index 7a4065afd46fc840fa62d4450258e0a0c6ee05ce..ba3618614a9bf9c7958647f6e5b40fd1f4209ba9 100644 (file)
@@ -253,6 +253,9 @@ class ThreadPoolShutdownTest(ThreadPoolMixin, ExecutorShutdownTest, BaseTestCase
 
 
 class ProcessPoolShutdownTest(ExecutorShutdownTest):
+    # gh-125451: 'lock' cannot be serialized, the test is broken
+    # and hangs randomly
+    @unittest.skipIf(True, "broken test")
     def test_processes_terminate(self):
         def acquire_lock(lock):
             lock.acquire()