diff --git a/tornado/test/tcpclient_test.py b/tornado/test/tcpclient_test.py index a9dfe5a5..5df4a7ab 100644 --- a/tornado/test/tcpclient_test.py +++ b/tornado/test/tcpclient_test.py @@ -72,7 +72,9 @@ class TCPClientTest(AsyncTestCase): super(TCPClientTest, self).tearDown() def skipIfLocalhostV4(self): - Resolver().resolve('localhost', 0, callback=self.stop) + # The port used here doesn't matter, but some systems require it + # to be non-zero if we do not also pass AI_PASSIVE. + Resolver().resolve('localhost', 80, callback=self.stop) addrinfo = self.wait() families = set(addr[0] for addr in addrinfo) if socket.AF_INET6 not in families: