MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/test/test_docxmlrpc.py:71–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69
70class DocXMLRPCHTTPGETServer(unittest.TestCase):
71 def setUp(self):
72 # Enable server feedback
73 DocXMLRPCServer._send_traceback_header = True
74
75 self.serv = make_server()
76 self.thread = threading.Thread(target=self.serv.serve_forever)
77 self.thread.start()
78
79 PORT = self.serv.server_address[1]
80 self.client = http.client.HTTPConnection("localhost:%d" % PORT)
81
82 def tearDown(self):
83 self.client.close()

Callers

nothing calls this directly

Calls 2

make_serverFunction · 0.70
startMethod · 0.45

Tested by

no test coverage detected