1515from unittest import mock
1616
1717from test import support
18- from test .support import os_helper
18+ from test .support import os_helper , warnings_helper
1919from test .support import socket_helper
2020from test .support import wait_process
2121from test .support import hashlib_helper
@@ -1182,6 +1182,7 @@ async def runner():
11821182@support .requires_fork ()
11831183class TestFork (unittest .IsolatedAsyncioTestCase ):
11841184
1185+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
11851186 async def test_fork_not_share_event_loop (self ):
11861187 # The forked process should not share the event loop with the parent
11871188 loop = asyncio .get_running_loop ()
@@ -1206,6 +1207,7 @@ async def test_fork_not_share_event_loop(self):
12061207 self .assertEqual (result , b'NO LOOP' )
12071208 wait_process (pid , exitcode = 0 )
12081209
1210+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
12091211 @hashlib_helper .requires_hashdigest ('md5' )
12101212 @support .skip_if_sanitizer ("TSAN doesn't support threads after fork" , thread = True )
12111213 def test_fork_signal_handling (self ):
@@ -1253,6 +1255,7 @@ async def func():
12531255 self .assertFalse (parent_handled .is_set ())
12541256 self .assertTrue (child_handled .is_set ())
12551257
1258+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
12561259 @hashlib_helper .requires_hashdigest ('md5' )
12571260 @support .skip_if_sanitizer ("TSAN doesn't support threads after fork" , thread = True )
12581261 def test_fork_asyncio_run (self ):
@@ -1273,6 +1276,7 @@ async def child_main():
12731276
12741277 self .assertEqual (result .value , 42 )
12751278
1279+ @warnings_helper .ignore_warnings (category = DeprecationWarning ) # gh-135427
12761280 @hashlib_helper .requires_hashdigest ('md5' )
12771281 @support .skip_if_sanitizer ("TSAN doesn't support threads after fork" , thread = True )
12781282 def test_fork_asyncio_subprocess (self ):
0 commit comments