MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

332
333class BaseErrorTestServer(socketserver.TCPServer):
334 def __init__(self, exception):
335 self.exception = exception
336 super().__init__((HOST, 0), BadHandler)
337 with socket.create_connection(self.server_address):
338 pass
339 try:
340 self.handle_request()
341 finally:
342 self.server_close()
343 self.wait_done()
344
345 def handle_error(self, request, client_address):
346 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