diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-26 00:17:21 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-26 00:17:21 +0300 |
commit | ec42975bc66706554ae29b3884bdaaa6b26c487c (patch) | |
tree | 4e7f428e153c53dcb9ccab73d3b99d1ffcfbda7b | |
parent | 7eaf3f7080a0b0e1e551d2d9d2dcddd54d53af59 (diff) | |
parent | 4f1353ab10792f47a51c37f1384f036a1679aec0 (diff) | |
download | cpython-git-ec42975bc66706554ae29b3884bdaaa6b26c487c.tar.gz |
#18833: merge with 3.3.
-rw-r--r-- | Lib/test/test_telnetlib.py | 8 | ||||
-rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_telnetlib.py b/Lib/test/test_telnetlib.py index 11e95e77b7..c9f2ccb462 100644 --- a/Lib/test/test_telnetlib.py +++ b/Lib/test/test_telnetlib.py @@ -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 |