Skip to content

Commit 5f73de9

Browse files
committed
Call listen() on low-level socket test.
This is apparently required on linux but not on mac.
1 parent dc10fce commit 5f73de9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tornado/test/simple_httpclient_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def test_connect_timeout(self):
140140
with closing(socket.socket()) as sock:
141141
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
142142
sock.bind(('', port))
143+
sock.listen(1)
143144
self.http_client.fetch("http://localhost:%d/" % port,
144145
self.stop,
145146
connect_timeout=0.1)

0 commit comments

Comments
 (0)