8 class TrivialHandler(http
.server
.BaseHTTPRequestHandler
):
10 self
.send_response(501)
12 def log_request(self
, *args
, **kwargs
):
13 print(self
.requestline
)
17 httpd
= http
.server
.HTTPServer(("", 0), TrivialHandler
)
18 port
= httpd
.socket
.getsockname()[1]
21 t
= threading
.Thread(target
=httpd
.serve_forever
).start()
22 os
.environ
["DEBUGINFOD_URLS"] = f
"http://localhost:{port}"
23 subprocess
.run(sys
.argv
[1:], capture_output
=True)