Skip to content

Commit 8b99792

Browse files
committed
[3.14] gh-143121: Skip test that leak threads under TSan (gh-143125)
(cherry picked from commit 4ee6929) Co-authored-by: Sam Gross <colesbury@gmail.com>
1 parent 64461f1 commit 8b99792

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3312,6 +3312,7 @@ class _TestMyManager(BaseTestCase):
33123312

33133313
ALLOWED_TYPES = ('manager',)
33143314

3315+
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
33153316
def test_mymanager(self):
33163317
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
33173318
manager.start()
@@ -3323,6 +3324,7 @@ def test_mymanager(self):
33233324
# which happens on slow buildbots.
33243325
self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
33253326

3327+
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
33263328
def test_mymanager_context(self):
33273329
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
33283330
with manager:
@@ -3332,6 +3334,7 @@ def test_mymanager_context(self):
33323334
# which happens on slow buildbots.
33333335
self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
33343336

3337+
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
33353338
def test_mymanager_context_prestarted(self):
33363339
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
33373340
manager.start()
@@ -3402,6 +3405,7 @@ def _putter(cls, address, authkey):
34023405
# Note that xmlrpclib will deserialize object as a list not a tuple
34033406
queue.put(tuple(cls.values))
34043407

3408+
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
34053409
def test_remote(self):
34063410
authkey = os.urandom(32)
34073411

@@ -3443,6 +3447,7 @@ def _putter(cls, address, authkey):
34433447
queue = manager.get_queue()
34443448
queue.put('hello world')
34453449

3450+
@support.skip_if_sanitizer("TSan: leaks threads", thread=True)
34463451
def test_rapid_restart(self):
34473452
authkey = os.urandom(32)
34483453
manager = QueueManager(

0 commit comments

Comments
 (0)