def check_enough_semaphores():
 nsems_min = 256
 try:
  nsems = os.sysconf('SC_SEM_NSEMS_MAX')
 except (AttributeError, ValueError):
  return
 if ((nsems == (-1)) or (nsems >= nsems_min)):
  return
 raise unittest.SkipTest(("The OS doesn't support enough semaphores to run the test (required: %d)." % nsems_min))

def check_enough_semaphores ( ) : nsems_min = 256 try : nsems = os . sysconf ( 'SC_SEM_NSEMS_MAX' ) except ( AttributeError , ValueError ) : return if ( ( nsems == ( - 1 ) ) or ( nsems >= nsems_min ) ) : return raise unittest . SkipTest ( ( "The OS doesn't support enough semaphores to run the test (required: %d)." % nsems_min ) )
check that the system supports enough semaphores to run the test .