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

Method setUp

Lib/test/test_logging.py:2137–2141  ·  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

2135 """Test for HTTPHandler."""
2136
2137 def setUp(self):
2138 """Set up an HTTP server to receive log messages, and a HTTPHandler
2139 pointing to that server's address and port."""
2140 BaseTest.setUp(self)
2141 self.handled = threading.Event()
2142
2143 def handle_request(self, request):
2144 self.command = request.command

Callers

nothing calls this directly

Calls 2

EventMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected