def debug_error_message(msg):
 action = config.compute_test_value
 assert (action != 'off')
 if (action in ['raise', 'ignore']):
  raise ValueError(msg)
 else:
  assert (action == 'warn')
  warnings.warn(msg, stacklevel=2)

def debug_error_message ( msg ) : action = config . compute_test_value assert ( action != 'off' ) if ( action in [ 'raise' , 'ignore' ] ) : raise ValueError ( msg ) else : assert ( action == 'warn' ) warnings . warn ( msg , stacklevel = 2 )
displays a message saying that an error was found in some test_values .