From e14267bbad5cfc96712025a7f14d1c259c975aa8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 28 Sep 2008 20:57:21 +0000 Subject: merge in the fix for test_ftplib on some bots [reviewed by Georg] --- Lib/test/test_ftplib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index 7e8dce6..c48497d 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -212,6 +212,11 @@ class DummyFTPServer(asyncore.dispatcher, threading.Thread): def handle_accept(self): conn, addr = self.accept() self.handler = self.handler(conn) + self.close() + + def handle_connect(self): + self.close() + handle_read = handle_connect def writable(self): return 0 -- cgit v0.12