]> granicus.if.org Git - python/commitdiff
Merged revisions 75962-75963 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 30 Oct 2009 17:58:27 +0000 (17:58 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 30 Oct 2009 17:58:27 +0000 (17:58 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75962 | antoine.pitrou | 2009-10-30 18:55:21 +0100 (ven., 30 oct. 2009) | 3 lines

  Try to fix transient refleaks in test_asynchat.
........
  r75963 | antoine.pitrou | 2009-10-30 18:56:00 +0100 (ven., 30 oct. 2009) | 3 lines

  Try to fix transient refleaks in test_xmlrpc.
........

Lib/test/test_asynchat.py
Lib/test/test_xmlrpc.py

index f49701fd84b9ca93bb0fed34d771634a68e502cd..1778a5fcc600b65fdf2fe8dfa40521eec9d45d11 100644 (file)
@@ -93,10 +93,10 @@ class TestAsynchat(unittest.TestCase):
     usepoll = False
 
     def setUp (self):
-        pass
+        self._threads = support.threading_setup()
 
     def tearDown (self):
-        pass
+        support.threading_cleanup(*self._threads)
 
     def line_terminator_check(self, term, server_chunk):
         event = threading.Event()
index bd00ab110e9efc4a78b22b4150b79ce62d8be37b..f229284256e5724389230a5a6c0b83fed061abaf 100644 (file)
@@ -798,6 +798,7 @@ class CGIHandlerTestCase(unittest.TestCase):
             len(content))
 
 
+@support.reap_threads
 def test_main():
     xmlrpc_tests = [XMLRPCTestCase, HelperTestCase, DateTimeTestCase,
          BinaryTestCase, FaultTestCase]