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

Method setUp

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

Source from the content-addressed store, hash-verified

5612 SocketConnectedTest.__init__(self, methodName=methodName)
5613
5614 def setUp(self):
5615 self.evt1, self.evt2, self.serv_finished, self.cli_finished = [
5616 threading.Event() for i in range(4)]
5617 SocketConnectedTest.setUp(self)
5618 self.read_file = self.cli_conn.makefile(
5619 self.read_mode, self.bufsize,
5620 encoding = self.encoding,
5621 errors = self.errors,
5622 newline = self.newline)
5623
5624 def tearDown(self):
5625 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