mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
#18833: merge with 3.3.
This commit is contained in:
commit
ec42975bc6
2 changed files with 9 additions and 0 deletions
|
@ -75,6 +75,14 @@ class GeneralTests(TestCase):
|
|||
self.assertEqual(telnet.sock.gettimeout(), 30)
|
||||
telnet.sock.close()
|
||||
|
||||
def testGetters(self):
|
||||
# Test telnet getter methods
|
||||
telnet = telnetlib.Telnet(HOST, self.port, timeout=30)
|
||||
t_sock = telnet.sock
|
||||
self.assertEqual(telnet.get_socket(), t_sock)
|
||||
self.assertEqual(telnet.fileno(), t_sock.fileno())
|
||||
telnet.sock.close()
|
||||
|
||||
class SocketStub(object):
|
||||
''' a socket proxy that re-defines sendall() '''
|
||||
def __init__(self, reads=()):
|
||||
|
|
|
@ -1324,6 +1324,7 @@ Norman Vine
|
|||
Pauli Virtanen
|
||||
Frank Visser
|
||||
Johannes Vogel
|
||||
Alex Volkov
|
||||
Martijn Vries
|
||||
Sjoerd de Vries
|
||||
Niki W. Waibel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue