Lines Matching full:sock
283 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
284 self.sock.settimeout(60) # Safety net. Look issue 11812
285 self.port = test_support.bind_port(self.sock)
286 self.thread = threading.Thread(target=self.server, args=(self.evt,self.sock))
314 self.assertEqual(pop.sock.gettimeout(), 30)
315 pop.sock.close()
324 self.assertTrue(pop.sock.gettimeout() is None)
325 pop.sock.close()
329 self.assertEqual(pop.sock.gettimeout(), 30)
330 pop.sock.close()