MCPcopy Index your code
hub / github.com/bugy/script-server / tearDown

Method tearDown

src/tests/web/server_test.py:331–345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

329 self.runners_folder = os.path.join(self.conf_folder, 'runners')
330
331 def tearDown(self) -> None:
332 super().tearDown()
333
334 io_loop = IOLoop.current()
335
336 try:
337 server._http_server.stop()
338 except KeyError:
339 for socket in server._http_server._sockets.values():
340 socket.close()
341 server._http_server._sockets.clear()
342
343 self.kill_ioloop(io_loop)
344
345 test_utils.cleanup()
346
347 def kill_ioloop(self, io_loop):
348 if not io_loop or not io_loop.asyncio_loop.is_running():

Callers

nothing calls this directly

Calls 5

kill_ioloopMethod · 0.95
stopMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected