Skip to content

Commit 6fc349f

Browse files
committed
[3.13] 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 e20863f commit 6fc349f

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
@@ -3169,6 +3169,7 @@ class _TestMyManager(BaseTestCase):
31693169

31703170
ALLOWED_TYPES = ('manager',)
31713171

3172+
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
31723173
def test_mymanager(self):
31733174
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
31743175
manager.start()
@@ -3180,6 +3181,7 @@ def test_mymanager(self):
31803181
# which happens on slow buildbots.
31813182
self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
31823183

3184+
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
31833185
def test_mymanager_context(self):
31843186
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
31853187
with manager:
@@ -3189,6 +3191,7 @@ def test_mymanager_context(self):
31893191
# which happens on slow buildbots.
31903192
self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
31913193

3194+
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
31923195
def test_mymanager_context_prestarted(self):
31933196
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
31943197
manager.start()
@@ -3259,6 +3262,7 @@ def _putter(cls, address, authkey):
32593262
# Note that xmlrpclib will deserialize object as a list not a tuple
32603263
queue.put(tuple(cls.values))
32613264

3265+
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
32623266
def test_remote(self):
32633267
authkey = os.urandom(32)
32643268

@@ -3300,6 +3304,7 @@ def _putter(cls, address, authkey):
33003304
queue = manager.get_queue()
33013305
queue.put('hello world')
33023306

3307+
@support.skip_if_sanitizer("TSan: leaks threads", thread=True)
33033308
def test_rapid_restart(self):
33043309
authkey = os.urandom(32)
33053310
manager = QueueManager(

0 commit comments

Comments
 (0)