@@ -1118,6 +1118,7 @@ def _test_put(cls, queue, child_can_start, parent_can_continue):
11181118 queue .get ()
11191119 parent_can_continue .set ()
11201120
1121+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
11211122 def test_put (self ):
11221123 MAXSIZE = 6
11231124 queue = self .Queue (maxsize = MAXSIZE )
@@ -1187,6 +1188,7 @@ def _test_get(cls, queue, child_can_start, parent_can_continue):
11871188 queue .put (5 )
11881189 parent_can_continue .set ()
11891190
1191+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
11901192 def test_get (self ):
11911193 queue = self .Queue ()
11921194 child_can_start = self .Event ()
@@ -1248,6 +1250,7 @@ def _test_fork(cls, queue):
12481250 # process cannot shutdown until the feeder thread has finished
12491251 # pushing items onto the pipe.
12501252
1253+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
12511254 def test_fork (self ):
12521255 # Old versions of Queue would fail to create a new feeder
12531256 # thread for a forked process if the original process had its
@@ -1298,6 +1301,7 @@ def _test_task_done(cls, q):
12981301 time .sleep (DELTA )
12991302 q .task_done ()
13001303
1304+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
13011305 def test_task_done (self ):
13021306 queue = self .JoinableQueue ()
13031307
@@ -2912,6 +2916,7 @@ def test_async(self):
29122916 self .assertEqual (get (), 49 )
29132917 self .assertTimingAlmostEqual (get .elapsed , TIMEOUT1 )
29142918
2919+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
29152920 def test_async_timeout (self ):
29162921 p = self .Pool (3 )
29172922 try :
@@ -3009,6 +3014,7 @@ def test_imap_unordered_handle_iterable_exception(self):
30093014 self .assertIn (value , expected_values )
30103015 expected_values .remove (value )
30113016
3017+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
30123018 def test_make_pool (self ):
30133019 expected_error = (RemoteError if self .TYPE == 'manager'
30143020 else ValueError )
@@ -3024,6 +3030,7 @@ def test_make_pool(self):
30243030 p .close ()
30253031 p .join ()
30263032
3033+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
30273034 def test_terminate (self ):
30283035 # Simulate slow tasks which take "forever" to complete
30293036 sleep_time = support .LONG_TIMEOUT
@@ -3041,6 +3048,7 @@ def test_terminate(self):
30413048 p .terminate ()
30423049 p .join ()
30433050
3051+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
30443052 def test_empty_iterable (self ):
30453053 # See Issue 12157
30463054 p = self .Pool (1 )
@@ -3053,6 +3061,7 @@ def test_empty_iterable(self):
30533061 p .close ()
30543062 p .join ()
30553063
3064+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
30563065 def test_context (self ):
30573066 if self .TYPE == 'processes' :
30583067 L = list (range (10 ))
@@ -3067,6 +3076,7 @@ def test_context(self):
30673076 def _test_traceback (cls ):
30683077 raise RuntimeError (123 ) # some comment
30693078
3079+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
30703080 def test_traceback (self ):
30713081 # We want ensure that the traceback from the child process is
30723082 # contained in the traceback raised in the main process.
@@ -3106,16 +3116,19 @@ def test_traceback(self):
31063116 p .join ()
31073117
31083118 @classmethod
3119+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
31093120 def _test_wrapped_exception (cls ):
31103121 raise RuntimeError ('foo' )
31113122
3123+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
31123124 def test_wrapped_exception (self ):
31133125 # Issue #20980: Should not wrap exception when using thread pool
31143126 with self .Pool (1 ) as p :
31153127 with self .assertRaises (RuntimeError ):
31163128 p .apply (self ._test_wrapped_exception )
31173129 p .join ()
31183130
3131+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
31193132 def test_map_no_failfast (self ):
31203133 # Issue #23992: the fail-fast behaviour when an exception is raised
31213134 # during map() would make Pool.join() deadlock, because a worker
@@ -3151,6 +3164,7 @@ def test_release_task_refs(self):
31513164 # they were released too.
31523165 self .assertEqual (CountedObject .n_instances , 0 )
31533166
3167+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
31543168 def test_enter (self ):
31553169 if self .TYPE == 'manager' :
31563170 self .skipTest ("test not applicable to manager" )
@@ -3167,6 +3181,7 @@ def test_enter(self):
31673181 pass
31683182 pool .join ()
31693183
3184+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
31703185 def test_resource_warning (self ):
31713186 if self .TYPE == 'manager' :
31723187 self .skipTest ("test not applicable to manager" )
@@ -3232,6 +3247,7 @@ def errback(exc):
32323247class _TestPoolWorkerLifetime (BaseTestCase ):
32333248 ALLOWED_TYPES = ('processes' , )
32343249
3250+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
32353251 def test_pool_worker_lifetime (self ):
32363252 p = multiprocessing .Pool (3 , maxtasksperchild = 10 )
32373253 self .assertEqual (3 , len (p ._pool ))
@@ -3261,6 +3277,7 @@ def test_pool_worker_lifetime(self):
32613277 p .close ()
32623278 p .join ()
32633279
3280+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
32643281 def test_pool_worker_lifetime_early_close (self ):
32653282 # Issue #10332: closing a pool whose workers have limited lifetimes
32663283 # before all the tasks completed would make join() hang.
@@ -4048,6 +4065,7 @@ def _remote(cls, conn):
40484065
40494066 conn .close ()
40504067
4068+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
40514069 def test_pickling (self ):
40524070 families = self .connection .families
40534071
0 commit comments