1010from concurrent .futures .process import BrokenProcessPool , _ThreadWakeup
1111
1212from test import support
13+ from test .support import warnings_helper
1314
1415from .util import (
1516 create_executor_tests , setup_module ,
@@ -111,6 +112,7 @@ def _fail_on_deadlock(self, executor):
111112 print (f"\n Traceback:\n { tb } " , file = sys .__stderr__ )
112113 self .fail (f"Executor deadlock:\n \n { tb } " )
113114
115+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
114116 def _check_error (self , error , func , * args , ignore_stderr = False ):
115117 # test for deadlock caused by crashes or exiting in a pool
116118 self .executor .shutdown (wait = True )
@@ -199,6 +201,7 @@ def test_exit_during_result_unpickle_in_result_handler(self):
199201 # the result_handler thread
200202 self ._check_error (BrokenProcessPool , _return_instance , ExitAtUnpickle )
201203
204+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
202205 @support .skip_if_sanitizer ("UBSan: explicit SIGSEV not allowed" , ub = True )
203206 def test_shutdown_deadlock (self ):
204207 # Test that the pool calling shutdown do not cause deadlock
@@ -212,6 +215,7 @@ def test_shutdown_deadlock(self):
212215 with self .assertRaises (BrokenProcessPool ):
213216 f .result ()
214217
218+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
215219 def test_shutdown_deadlock_pickle (self ):
216220 # Test that the pool calling shutdown with wait=False does not cause
217221 # a deadlock if a task fails at pickle after the shutdown call.
@@ -238,6 +242,7 @@ def test_shutdown_deadlock_pickle(self):
238242 # dangling threads
239243 executor_manager .join ()
240244
245+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
241246 @support .skip_if_sanitizer ("UBSan: explicit SIGSEV not allowed" , ub = True )
242247 def test_crash_big_data (self ):
243248 # Test that there is a clean exception instead of a deadlock when a
@@ -254,6 +259,7 @@ def test_crash_big_data(self):
254259
255260 executor .shutdown (wait = True )
256261
262+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
257263 def test_gh105829_should_not_deadlock_if_wakeup_pipe_full (self ):
258264 # Issue #105829: The _ExecutorManagerThread wakeup pipe could
259265 # fill up and block. See: https://github.com/python/cpython/issues/105829
0 commit comments