gh-143121: Skip test that leak threads under TSan (gh-143125)

This commit is contained in:
Sam Gross 2025-12-24 08:02:02 -05:00 committed by GitHub
parent 57937a8e5e
commit 4ee6929d60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(