From: Ben Darnell Date: Tue, 20 May 2014 03:05:22 +0000 (-0400) Subject: Add some logging to diagnose this flaky test on travis. X-Git-Tag: v4.0.0b1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f8502251221747cd8f877158eb848ba1a729950;p=thirdparty%2Ftornado.git Add some logging to diagnose this flaky test on travis. --- diff --git a/tornado/test/tcpclient_test.py b/tornado/test/tcpclient_test.py index a12f5aafd..dc738e7e7 100644 --- a/tornado/test/tcpclient_test.py +++ b/tornado/test/tcpclient_test.py @@ -34,7 +34,11 @@ class TestTCPServer(TCPServer): def __init__(self, family): super(TestTCPServer, self).__init__() self.streams = [] - sockets = bind_sockets(None, 'localhost', family) + try: + sockets = bind_sockets(None, 'localhost', family) + except: + print(socket.getaddrinfo('localhost', 0)) + raise self.add_sockets(sockets) self.port = sockets[0].getsockname()[1]