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

Method __init__

Lib/test/test_socketserver.py:346–355  ·  view source on GitHub ↗
(self, exception)

Source from the content-addressed store, hash-verified

344
345class BaseErrorTestServer(socketserver.TCPServer):
346 def __init__(self, exception):
347 self.exception = exception
348 super().__init__((HOST, 0), BadHandler)
349 with socket.create_connection(self.server_address):
350 pass
351 try:
352 self.handle_request()
353 finally:
354 self.server_close()
355 self.wait_done()
356
357 def handle_error(self, request, client_address):
358 with open(os_helper.TESTFN, 'a') as log:

Callers 1

__init__Method · 0.45

Calls 5

wait_doneMethod · 0.95
superClass · 0.85
create_connectionMethod · 0.45
handle_requestMethod · 0.45
server_closeMethod · 0.45

Tested by

no test coverage detected