parameters: ()
docstring: Cleanup multiprocessing resources when multiprocessing tests
      completed.
docstring_summary: Cleanup multiprocessing resources when multiprocessing tests
      completed.
docstring_tokens: Cleanup multiprocessing resources when multiprocessing tests completed .
function: def _cleanup_tests():
      """Cleanup multiprocessing resources when multiprocessing tests
      completed."""
  
      from test import support
  
      # cleanup multiprocessing
      process._cleanup()
  
      # Stop the ForkServer process if it's running
      from multiprocessing import forkserver
      forkserver._forkserver._stop()
  
      # bpo-37421: Explicitly call _run_finalizers() to remove immediately
      # temporary directories created by multiprocessing.util.get_temp_dir().
      _run_finalizers()
      support.gc_collect()
  
      support.reap_children()
function_tokens: def _cleanup_tests ( ) : from test import support # cleanup multiprocessing process . _cleanup ( ) # Stop the ForkServer process if it's running from multiprocessing import forkserver forkserver . _forkserver . _stop ( ) # bpo-37421: Explicitly call _run_finalizers() to remove immediately # temporary directories created by multiprocessing.util.get_temp_dir(). _run_finalizers ( ) support . gc_collect ( ) support . reap_children ( )