diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_telnetlib.py | 3 |
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): |