Commit 3463ee39 authored by Christian Heimes's avatar Christian Heimes Committed by GitHub

Stop test_xmlrpc from writing to sys.stderr (#3359)

One test case of test_xmlrpc uses HTTPServer with a subclass of
BaseHTTPRequestHandler. The BaseRequestHandler class logs to
sys.stderr by default. Override log_message() to not clobber
test output.
Signed-off-by: default avatarChristian Heimes <christian@python.org>
parent 05351c1b
......@@ -328,6 +328,10 @@ class XMLRPCTestCase(unittest.TestCase):
self.handled = True
self.close_connection = False
def log_message(self, format, *args):
# don't clobber sys.stderr
pass
def run_server():
server.socket.settimeout(float(1)) # Don't hang if client fails
server.handle_request() # First request and attempt at second
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment