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

Method stop

Lib/test/test_logging.py:987–996  ·  view source on GitHub ↗

Tell the server thread to stop, and wait for it to do so.

(self)

Source from the content-addressed store, hash-verified

985 super(ControlMixin, self).serve_forever(poll_interval)
986
987 def stop(self):
988 """
989 Tell the server thread to stop, and wait for it to do so.
990 """
991 self.shutdown()
992 if self._thread is not None:
993 threading_helper.join_thread(self._thread)
994 self._thread = None
995 self.server_close()
996 self.ready.clear()
997
998class TestHTTPServer(ControlMixin, HTTPServer):
999 """

Callers 15

tearDownMethod · 0.45
test_get_tracesMethod · 0.45
test_is_tracingMethod · 0.45
test_snapshotMethod · 0.45
tearDownMethod · 0.45
test_stop_trackMethod · 0.45
test_stop_untrackMethod · 0.45
tearDownMethod · 0.45

Calls 4

join_threadMethod · 0.80
shutdownMethod · 0.45
server_closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected