summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_telnetlib.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-03-01 00:45:22 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-03-01 00:45:22 (GMT)
commitd84dfee7c1cc08063725bd65b7abd67098b7104e (patch)
treeb9cfeac871e1de2285d0cdae4140710b31e5d46e /Lib/test/test_telnetlib.py
parent6120d87d32a2bfae04b6d85cff1f965b04866145 (diff)
downloadcpython-d84dfee7c1cc08063725bd65b7abd67098b7104e.zip
cpython-d84dfee7c1cc08063725bd65b7abd67098b7104e.tar.gz
cpython-d84dfee7c1cc08063725bd65b7abd67098b7104e.tar.bz2
Merged revisions 88691 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88691 | antoine.pitrou | 2011-03-01 01:41:10 +0100 (mar., 01 mars 2011) | 3 lines Endly, fix UnboundLocalError in telnetlib ........
Diffstat (limited to 'Lib/test/test_telnetlib.py')
-rw-r--r--Lib/test/test_telnetlib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_telnetlib.py b/Lib/test/test_telnetlib.py
index 843daf1..a78b938 100644
--- a/Lib/test/test_telnetlib.py
+++ b/Lib/test/test_telnetlib.py
@@ -17,9 +17,10 @@ def server(evt, serv):
conn, addr = serv.accept()
except socket.timeout:
pass
+ else:
+ conn.close()
finally:
serv.close()
- conn.close()
evt.set()
class GeneralTests(TestCase):