Exemple #1
0
 def f():
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=RuntimeError('Oops')):
         raise processutils.ProcessExecutionError
Exemple #2
0
 def f():
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=True):
         raise processutils.ProcessExecutionError(description='Oops')
Exemple #3
0
 def test_reraise_false(self):
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=False):
         raise processutils.ProcessExecutionError(description='Oops')
Exemple #4
0
 def test_no_exception(self):
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=True):
         pass
Exemple #5
0
 def f():
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=True):
         1 / 0
Exemple #6
0
 def f():
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=RuntimeError('Oops')):
         raise processutils.ProcessExecutionError
Exemple #7
0
 def test_reraise_false(self):
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=False):
         raise processutils.ProcessExecutionError(description='Oops')
Exemple #8
0
 def f():
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=True):
         raise processutils.ProcessExecutionError(description='Oops')
Exemple #9
0
 def f():
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=True):
         1 / 0
Exemple #10
0
 def test_no_exception(self):
     with srb.handle_process_execution_error(
             message='', info_message='', reraise=True):
         pass