mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-143121: Skip test that leak threads under TSan (gh-143125)
This commit is contained in:
parent
57937a8e5e
commit
4ee6929d60
1 changed files with 5 additions and 0 deletions
|
|
@ -3392,6 +3392,7 @@ class _TestMyManager(BaseTestCase):
|
|||
ALLOWED_TYPES = ('manager',)
|
||||
|
||||
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
|
||||
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
|
||||
def test_mymanager(self):
|
||||
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
|
||||
manager.start()
|
||||
|
|
@ -3404,6 +3405,7 @@ def test_mymanager(self):
|
|||
self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
|
||||
|
||||
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
|
||||
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
|
||||
def test_mymanager_context(self):
|
||||
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
|
||||
with manager:
|
||||
|
|
@ -3414,6 +3416,7 @@ def test_mymanager_context(self):
|
|||
self.assertIn(manager._process.exitcode, (0, -signal.SIGTERM))
|
||||
|
||||
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
|
||||
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
|
||||
def test_mymanager_context_prestarted(self):
|
||||
manager = MyManager(shutdown_timeout=SHUTDOWN_TIMEOUT)
|
||||
manager.start()
|
||||
|
|
@ -3485,6 +3488,7 @@ def _putter(cls, address, authkey):
|
|||
queue.put(tuple(cls.values))
|
||||
|
||||
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
|
||||
@support.skip_if_sanitizer('TSan: leaks threads', thread=True)
|
||||
def test_remote(self):
|
||||
authkey = os.urandom(32)
|
||||
|
||||
|
|
@ -3527,6 +3531,7 @@ def _putter(cls, address, authkey):
|
|||
queue.put('hello world')
|
||||
|
||||
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
|
||||
@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