Fix transient refleaks in test_docxmlrpc.
This commit is contained in:
parent
59c44f36e0
commit
61d5f6ff79
|
@ -54,6 +54,7 @@ POSTing to /RPC2. Try self.add, too.""")
|
||||||
|
|
||||||
class DocXMLRPCHTTPGETServer(unittest.TestCase):
|
class DocXMLRPCHTTPGETServer(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
self._threads = test_support.threading_setup()
|
||||||
# Enable server feedback
|
# Enable server feedback
|
||||||
DocXMLRPCServer._send_traceback_header = True
|
DocXMLRPCServer._send_traceback_header = True
|
||||||
|
|
||||||
|
@ -75,6 +76,7 @@ class DocXMLRPCHTTPGETServer(unittest.TestCase):
|
||||||
|
|
||||||
# Disable server feedback
|
# Disable server feedback
|
||||||
DocXMLRPCServer._send_traceback_header = False
|
DocXMLRPCServer._send_traceback_header = False
|
||||||
|
test_support.threading_cleanup(*self._threads)
|
||||||
|
|
||||||
def test_valid_get_response(self):
|
def test_valid_get_response(self):
|
||||||
self.client.request("GET", "/")
|
self.client.request("GET", "/")
|
||||||
|
|
Loading…
Reference in New Issue