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

Method setUp

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

Source from the content-addressed store, hash-verified

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

Callers 4

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