parameters: (test, lit_config, parallelism_semaphores)
docstring: Execute one test inside the appropriate parallelism group
docstring_summary: Execute one test inside the appropriate parallelism group
docstring_tokens: Execute one test inside the appropriate parallelism group
function: def _execute_test_in_parallelism_group(test, lit_config, parallelism_semaphores):
      """Execute one test inside the appropriate parallelism group"""
      pg = test.config.parallelism_group
      if callable(pg):
          pg = pg(test)
  
      if pg:
          semaphore = parallelism_semaphores[pg]
          try:
              semaphore.acquire()
              _execute_test(test, lit_config)
          finally:
              semaphore.release()
      else:
          _execute_test(test, lit_config)
function_tokens: def _execute_test_in_parallelism_group ( test , lit_config , parallelism_semaphores ) : pg = test . config . parallelism_group if callable ( pg ) : pg = pg ( test ) if pg : semaphore = parallelism_semaphores [ pg ] try : semaphore . acquire ( ) _execute_test ( test , lit_config ) finally : semaphore . release ( ) else : _execute_test ( test , lit_config )