Kaydet (Commit) c7ea19fe authored tarafından Giampaolo Rodola''s avatar Giampaolo Rodola'

attempt to fix asyncore buildbot failure

...@@ -789,14 +789,18 @@ class BaseTestAPI(unittest.TestCase): ...@@ -789,14 +789,18 @@ class BaseTestAPI(unittest.TestCase):
count=500)) count=500))
t.start() t.start()
for x in range(20):
s = socket.socket(self.family, socket.SOCK_STREAM) s = socket.socket(self.family, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER, s.settimeout(.2)
struct.pack('ii', 1, 0)) s.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER,
struct.pack('ii', 1, 0))
try:
s.connect(server.address) s.connect(server.address)
except socket.error:
pass
finally:
s.close() s.close()
class TestAPI_UseIPv4Sockets(BaseTestAPI): class TestAPI_UseIPv4Sockets(BaseTestAPI):
family = socket.AF_INET family = socket.AF_INET
addr = (HOST, 0) addr = (HOST, 0)
......
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