From: Neal Norwitz Date: Mon, 25 Aug 2008 03:52:40 +0000 (+0000) Subject: Try to reduce the flakiness of this test X-Git-Tag: v2.6rc1~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e39be53c3cbdd2b623065e802e72a90d95f0bb31;p=thirdparty%2FPython%2Fcpython.git Try to reduce the flakiness of this test --- diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py index 7caa8a7aac65..719c48895504 100644 --- a/Lib/test/test_smtplib.py +++ b/Lib/test/test_smtplib.py @@ -212,6 +212,10 @@ class DebuggingServerTests(TestCase): m = 'A test message' smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) smtp.sendmail('John', 'Sally', m) + # XXX(nnorwitz): this test is flaky and dies with a bad file descriptor + # in asyncore. This sleep might help, but should really be fixed + # properly by using an Event variable. + time.sleep(0.01) smtp.quit() self.client_evt.set()