[Python-checkins] r66028 - python/trunk/Lib/test/test_smtplib.py

neal.norwitz python-checkins at python.org
Mon Aug 25 05:52:40 CEST 2008


Author: neal.norwitz
Date: Mon Aug 25 05:52:40 2008
New Revision: 66028

Log:
Try to reduce the flakiness of this test

Modified:
   python/trunk/Lib/test/test_smtplib.py

Modified: python/trunk/Lib/test/test_smtplib.py
==============================================================================
--- python/trunk/Lib/test/test_smtplib.py	(original)
+++ python/trunk/Lib/test/test_smtplib.py	Mon Aug 25 05:52:40 2008
@@ -212,6 +212,10 @@
         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()


More information about the Python-checkins mailing list