mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Merged revisions 75874 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75874 | antoine.pitrou | 2009-10-27 22:27:24 +0100 (mar., 27 oct. 2009) | 4 lines Reduce the probability of refleaks in test_socketserver. Not completely suppressed though, see issue #7222. ........
This commit is contained in:
parent
8c0e217158
commit
c00d4b437d
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ import unittest
|
||||||
import socketserver
|
import socketserver
|
||||||
|
|
||||||
import test.support
|
import test.support
|
||||||
from test.support import reap_children, verbose
|
from test.support import reap_children, reap_threads, verbose
|
||||||
from test.support import TESTFN as TEST_FILE
|
from test.support import TESTFN as TEST_FILE
|
||||||
|
|
||||||
test.support.requires("network")
|
test.support.requires("network")
|
||||||
|
@ -122,6 +122,7 @@ class SocketServerTest(unittest.TestCase):
|
||||||
self.assertEquals(server.server_address, server.socket.getsockname())
|
self.assertEquals(server.server_address, server.socket.getsockname())
|
||||||
return server
|
return server
|
||||||
|
|
||||||
|
@reap_threads
|
||||||
def run_server(self, svrcls, hdlrbase, testfunc):
|
def run_server(self, svrcls, hdlrbase, testfunc):
|
||||||
server = self.make_server(self.pickaddr(svrcls.address_family),
|
server = self.make_server(self.pickaddr(svrcls.address_family),
|
||||||
svrcls, hdlrbase)
|
svrcls, hdlrbase)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue