From 5f73de9f1402edb33703f8c3ef3ad7ae2bf348dc Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sat, 19 Feb 2011 14:59:39 -0800 Subject: [PATCH] Call listen() on low-level socket test. This is apparently required on linux but not on mac. --- tornado/test/simple_httpclient_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index 7a66884d8..3dd08bd21 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -140,6 +140,7 @@ class SimpleHTTPClientTestCase(AsyncHTTPTestCase, LogTrapTestCase): with closing(socket.socket()) as sock: sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind(('', port)) + sock.listen(1) self.http_client.fetch("http://localhost:%d/" % port, self.stop, connect_timeout=0.1) -- 2.47.2