def default_test_processes():
 if (not hasattr(os, 'fork')):
  return 1
 try:
  return int(os.environ['DJANGO_TEST_PROCESSES'])
 except KeyError:
  return multiprocessing.cpu_count()

def default_test_processes ( ) : if ( not hasattr ( os , 'fork' ) ) : return 1 try : return int ( os . environ [ 'DJANGO_TEST_PROCESSES' ] ) except KeyError : return multiprocessing . cpu_count ( )
default number of test processes when using the --parallel option .