]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-143121: Skip test that leak threads under TSan (gh-143125) (#143141)
authorSam Gross <colesbury@gmail.com>
Wed, 24 Dec 2025 13:31:05 +0000 (08:31 -0500)
committerGitHub <noreply@github.com>
Wed, 24 Dec 2025 13:31:05 +0000 (13:31 +0000)
(cherry picked from commit 4ee6929d606fa7b976eba229de24219f0edac3d7)

Lib/test/_test_multiprocessing.py

index d7f804a7c697015aa3e09265e2dcb64842e095dc..cd64a2ca43cc3efe4b1246df10d22991a525534d 100644 (file)
@@ -3312,6 +3312,7 @@ class _TestMyManager(BaseTestCase):
 
     ALLOWED_TYPES = ('manager',)
 
+    @support.skip_if_sanitizer('TSan: leaks threads', thread=True)
     def test_mymanager(self):
         manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
         manager.start()
@@ -3323,6 +3324,7 @@ class _TestMyManager(BaseTestCase):
         # which happens on slow buildbots.
         self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
 
+    @support.skip_if_sanitizer('TSan: leaks threads', thread=True)
     def test_mymanager_context(self):
         manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
         with manager:
@@ -3332,6 +3334,7 @@ class _TestMyManager(BaseTestCase):
         # which happens on slow buildbots.
         self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
 
+    @support.skip_if_sanitizer('TSan: leaks threads', thread=True)
     def test_mymanager_context_prestarted(self):
         manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
         manager.start()
@@ -3402,6 +3405,7 @@ class _TestRemoteManager(BaseTestCase):
         # Note that xmlrpclib will deserialize object as a list not a tuple
         queue.put(tuple(cls.values))
 
+    @support.skip_if_sanitizer('TSan: leaks threads', thread=True)
     def test_remote(self):
         authkey = os.urandom(32)
 
@@ -3443,6 +3447,7 @@ class _TestManagerRestart(BaseTestCase):
         queue = manager.get_queue()
         queue.put('hello world')
 
+    @support.skip_if_sanitizer("TSan: leaks threads", thread=True)
     def test_rapid_restart(self):
         authkey = os.urandom(32)
         manager = QueueManager(