Home | History | Annotate | Download | only in test

Lines Matching full:sock

47         self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
48 self.sock.settimeout(60) # Safety net. Look issue 11812
49 self.port = test_support.bind_port(self.sock)
50 self.thread = threading.Thread(target=server, args=(self.evt,self.sock))
61 telnet.sock.close()
70 self.assertEqual(telnet.sock.gettimeout(), 30)
71 telnet.sock.close()
81 self.assertTrue(telnet.sock.gettimeout() is None)
82 telnet.sock.close()
86 self.assertEqual(telnet.sock.gettimeout(), 30)
87 telnet.sock.close()
92 self.assertEqual(telnet.sock.gettimeout(), 30)
93 telnet.sock.close()
98 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
99 self.sock.settimeout(10)
100 self.port = test_support.bind_port(self.sock)
101 self.thread = threading.Thread(target=server, args=(self.evt,self.sock, self.dataq))
317 def do_nego(self, sock, cmd, opt):
388 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
389 self.sock.settimeout(10)
390 self.port = test_support.bind_port(self.sock)
391 self.thread = threading.Thread(target=server, args=(self.evt,self.sock,