Exemplo n.º 1
0
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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
    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()
Exemplo n.º 4
0
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)
Exemplo n.º 5
0
 def tearDown(self):
     threading_helper.threading_cleanup(*self._threads)
Exemplo n.º 6
0
 def tearDown(self):
     self.thread.stop()
     self.thread = None
     os.environ.__exit__()
     threading_helper.threading_cleanup(*self._threads)
Exemplo n.º 7
0
def tearDownModule():
    if threads_key:
        threading_helper.threading_cleanup(*threads_key)
Exemplo n.º 8
0
 def tearDown(self):
     threading_helper.threading_cleanup(*self._threads)
     test.support.reap_children()