Пример #1
0
 def run(self, data):
     result = ForResult(data.variables, data.flavor, data.values,
                        lineno=data.lineno, source=data.source)
     with StatusReporter(self._context, result):
         if data.error:
             raise DataError(data.error)
         self._run(data, result)
Пример #2
0
 def run(self, data):
     result = ForResult(data.variables, data.flavor, data.values)
     with StatusReporter(data, result, self._context, self._run):
         if self._run:
             if data.error:
                 raise DataError(data.error)
             self._run_loop(data, result)
         else:
             self._run_one_round(data, result)
Пример #3
0
 def run(self, data):
     result = ForResult(data.variables, data.flavor, data.values)
     with StatusReporter(data, result, self._context, self._run) as status:
         run_at_least_once = False
         if self._run:
             if data.error:
                 raise DataError(data.error)
             run_at_least_once = self._run_loop(data, result)
         if not run_at_least_once:
             status.pass_status = result.NOT_RUN
             self._run_one_round(data, result, run=False)