Reduce the probability of refleaks in test_socketserver.

Not completely suppressed though, see issue #7222.
This commit is contained in:
Antoine Pitrou 2009-10-27 21:27:24 +00:00
parent d24cab8c74
commit 8aea050911
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import unittest
import SocketServer
import test.test_support
from test.test_support import reap_children, verbose
from test.test_support import reap_children, reap_threads, verbose
from test.test_support import TESTFN as TEST_FILE
test.test_support.requires("network")
@ -122,6 +122,7 @@ class SocketServerTest(unittest.TestCase):
self.assertEquals(server.server_address, server.socket.getsockname())
return server
@reap_threads
def run_server(self, svrcls, hdlrbase, testfunc):
server = self.make_server(self.pickaddr(svrcls.address_family),
svrcls, hdlrbase)