def test_main(): tests = [TestPOP3Class, TestTimeouts, TestPOP3_SSLClass, TestPOP3_TLSClass] thread_info = threading_helper.threading_setup() try: test_support.run_unittest(*tests) finally: threading_helper.threading_cleanup(*thread_info)
def tearDown(self): # Stop threads self.stop = 1 for thread in self.threads: thread.join() thread = None self.threads.clear() threading_helper.threading_cleanup(*self._threading_key)
def tearDown(self): events.set_event_loop(None) # Detect CPython bug #23353: ensure that yield/yield-from is not used # in an except block of a generator self.assertEqual(sys.exc_info(), (None, None, None)) self.doCleanups() threading_helper.threading_cleanup(*self._thread_cleanup) support.reap_children()
def test_main(): tests = [ TestFTPClass, TestTimeouts, TestIPv6Environment, TestTLS_FTPClassMixin, TestTLS_FTPClass, MiscTestCase ] thread_info = threading_helper.threading_setup() try: support.run_unittest(*tests) finally: threading_helper.threading_cleanup(*thread_info)
def tearDown(self): threading_helper.threading_cleanup(*self._threads)
def tearDown(self): self.thread.stop() self.thread = None os.environ.__exit__() threading_helper.threading_cleanup(*self._threads)
def tearDownModule(): if threads_key: threading_helper.threading_cleanup(*threads_key)
def tearDown(self): threading_helper.threading_cleanup(*self._threads) test.support.reap_children()