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

Method setUp

Lib/test/test_logging.py:2163–2167  ·  view source on GitHub ↗

Set up an HTTP server to receive log messages, and a HTTPHandler pointing to that server's address and port.

(self)

Source from the content-addressed store, hash-verified

2161 """Test for HTTPHandler."""
2162
2163 def setUp(self):
2164 """Set up an HTTP server to receive log messages, and a HTTPHandler
2165 pointing to that server's address and port."""
2166 BaseTest.setUp(self)
2167 self.handled = threading.Event()
2168
2169 def handle_request(self, request):
2170 self.command = request.command

Callers

nothing calls this directly

Calls 2

EventMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected