mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.14] gh-143121: Skip test that leak threads under TSan (gh-143125) (#143141)
(cherry picked from commit 4ee6929d60)
This commit is contained in:
parent
41f4687867
commit
b921374c78
1 changed files with 5 additions and 0 deletions
|
|
@ -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 @@ def test_mymanager(self):
|
|||
# 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 @@ def test_mymanager_context(self):
|
|||
# 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 @@ def _putter(cls, address, authkey):
|
|||
# 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 @@ def _putter(cls, address, authkey):
|
|||
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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue