File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 44import  errno 
55import  io 
66import  multiprocessing 
7+ from  multiprocessing .util  import  _cleanup_tests  as  multiprocessing_cleanup_tests 
78import  os 
89import  pathlib 
910import  signal 
1516import  unittest 
1617from  unittest  import  mock 
1718import  warnings 
19+ 
1820from  test  import  support 
1921from  test .support  import  os_helper 
2022from  test .support  import  socket_helper 
@@ -1903,6 +1905,8 @@ async def test_fork_not_share_event_loop(self):
19031905
19041906    @hashlib_helper .requires_hashdigest ('md5' ) 
19051907    def  test_fork_signal_handling (self ):
1908+         self .addCleanup (multiprocessing_cleanup_tests )
1909+ 
19061910        # Sending signal to the forked process should not affect the parent 
19071911        # process 
19081912        ctx  =  multiprocessing .get_context ('fork' )
@@ -1947,6 +1951,8 @@ async def func():
19471951
19481952    @hashlib_helper .requires_hashdigest ('md5' ) 
19491953    def  test_fork_asyncio_run (self ):
1954+         self .addCleanup (multiprocessing_cleanup_tests )
1955+ 
19501956        ctx  =  multiprocessing .get_context ('fork' )
19511957        manager  =  ctx .Manager ()
19521958        self .addCleanup (manager .shutdown )
@@ -1964,6 +1970,8 @@ async def child_main():
19641970
19651971    @hashlib_helper .requires_hashdigest ('md5' ) 
19661972    def  test_fork_asyncio_subprocess (self ):
1973+         self .addCleanup (multiprocessing_cleanup_tests )
1974+ 
19671975        ctx  =  multiprocessing .get_context ('fork' )
19681976        manager  =  ctx .Manager ()
19691977        self .addCleanup (manager .shutdown )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments