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

Method setUp

Lib/test/test_socket.py:5511–5519  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5509 SocketConnectedTest.__init__(self, methodName=methodName)
5510
5511 def setUp(self):
5512 self.evt1, self.evt2, self.serv_finished, self.cli_finished = [
5513 threading.Event() for i in range(4)]
5514 SocketConnectedTest.setUp(self)
5515 self.read_file = self.cli_conn.makefile(
5516 self.read_mode, self.bufsize,
5517 encoding = self.encoding,
5518 errors = self.errors,
5519 newline = self.newline)
5520
5521 def tearDown(self):
5522 self.serv_finished.set()

Callers

nothing calls this directly

Calls 3

EventMethod · 0.80
setUpMethod · 0.45
makefileMethod · 0.45

Tested by

no test coverage detected