Пример #1
0
 def teardown_phase():
     teardown_running.set()
     # Sleeping for the entire duration has a race condition with cancellation.
     timeout = timeouts.PolledTimeout(1)
     while not timeout.has_expired():
         time.sleep(0.01)
     ev.set()
Пример #2
0
 def setUp(self):
     super(TestUtil, self).setUp()
     self.timeout = 60
     self.polledtimeout = timeouts.PolledTimeout(self.timeout)
Пример #3
0
 def setUp(cls):
   cls.timeout = 60
   cls.polledtimeout = timeouts.PolledTimeout(cls.timeout)