def f(): with srb.handle_process_execution_error( message='', info_message='', reraise=RuntimeError('Oops')): raise processutils.ProcessExecutionError
def f(): with srb.handle_process_execution_error( message='', info_message='', reraise=True): raise processutils.ProcessExecutionError(description='Oops')
def test_reraise_false(self): with srb.handle_process_execution_error( message='', info_message='', reraise=False): raise processutils.ProcessExecutionError(description='Oops')
def test_no_exception(self): with srb.handle_process_execution_error( message='', info_message='', reraise=True): pass
def f(): with srb.handle_process_execution_error( message='', info_message='', reraise=True): 1 / 0
def f(): with srb.handle_process_execution_error( message='', info_message='', reraise=RuntimeError('Oops')): raise processutils.ProcessExecutionError
def test_reraise_false(self): with srb.handle_process_execution_error( message='', info_message='', reraise=False): raise processutils.ProcessExecutionError(description='Oops')
def f(): with srb.handle_process_execution_error( message='', info_message='', reraise=True): raise processutils.ProcessExecutionError(description='Oops')
def f(): with srb.handle_process_execution_error( message='', info_message='', reraise=True): 1 / 0
def test_no_exception(self): with srb.handle_process_execution_error( message='', info_message='', reraise=True): pass