diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-30 17:58:27 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-30 17:58:27 (GMT) |
commit | e03866f6f148f6671a1fa56f7f2b2e5697a3d868 (patch) | |
tree | 46345d51e6d994bc2c6d6d5b1c4cd0ad37524753 /Lib | |
parent | d52656b4bc249154728e8b35597f810562806aa6 (diff) | |
download | cpython-e03866f6f148f6671a1fa56f7f2b2e5697a3d868.zip cpython-e03866f6f148f6671a1fa56f7f2b2e5697a3d868.tar.gz cpython-e03866f6f148f6671a1fa56f7f2b2e5697a3d868.tar.bz2 |
Merged revisions 75962-75963 via svnmerge from
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.
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asynchat.py | 4 | ||||
-rw-r--r-- | Lib/test/test_xmlrpc.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_asynchat.py b/Lib/test/test_asynchat.py index f49701f..1778a5f 100644 --- a/Lib/test/test_asynchat.py +++ b/Lib/test/test_asynchat.py @@ -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() diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index bd00ab1..f229284 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -798,6 +798,7 @@ class CGIHandlerTestCase(unittest.TestCase): len(content)) +@support.reap_threads def test_main(): xmlrpc_tests = [XMLRPCTestCase, HelperTestCase, DateTimeTestCase, BinaryTestCase, FaultTestCase] |