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()
def setUp(self): super(TestUtil, self).setUp() self.timeout = 60 self.polledtimeout = timeouts.PolledTimeout(self.timeout)
def setUp(cls): cls.timeout = 60 cls.polledtimeout = timeouts.PolledTimeout(cls.timeout)