commit | 4605a00207d26fe065896ad9cd047bbda5e4a9b2 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Mar 01 00:41:10 2011 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Mar 01 00:41:10 2011 +0000 |
tree | d0aa2978a2ef0264a78e5c76bd02a6f0bfb8cef1 | |
parent | f06576dc2b2cde783a0295bb06321d010b3156d9 [diff] |
Endly, fix UnboundLocalError in telnetlib
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 @@ conn, addr = serv.accept() except socket.timeout: pass + else: + conn.close() finally: serv.close() - conn.close() evt.set() class GeneralTests(TestCase):