From d84dfee7c1cc08063725bd65b7abd67098b7104e Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 1 Mar 2011 00:45:22 +0000 Subject: [PATCH] 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 ........ --- Lib/test/test_telnetlib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_telnetlib.py b/Lib/test/test_telnetlib.py index 843daf15850..a78b938b86f 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):