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

Method setUp

Lib/test/test_httpservers.py:117–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 tls = None
116
117 def setUp(self):
118 self._threads = threading_helper.threading_setup()
119 os.environ = os_helper.EnvironmentVarGuard()
120 self.server_started = threading.Event()
121 self.thread = TestServerThread(self, self.request_handler, self.tls)
122 self.thread.start()
123 self.server_started.wait()
124
125 def tearDown(self):
126 self.thread.stop()

Callers 5

setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls 4

TestServerThreadClass · 0.85
EventMethod · 0.80
startMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected