Lines Matching refs:self
11 def __init__(self, duration_sec):
12 super(TimeoutProc, self).__init__()
13 self._duration_sec = duration_sec
14 self._start = time.time()
16 def _on_next_test(self, test):
17 self.__on_event()
19 def _on_result_for(self, test, result):
20 self.__on_event()
22 def _on_heartbeat(self):
23 self.__on_event()
25 def __on_event(self):
26 if not self.is_stopped:
27 if time.time() - self._start > self._duration_sec:
29 self.stop()