]> granicus.if.org Git - python/commitdiff
Try to reduce the flakiness of this test
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 25 Aug 2008 03:52:40 +0000 (03:52 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 25 Aug 2008 03:52:40 +0000 (03:52 +0000)
Lib/test/test_smtplib.py

index 7caa8a7aac6554c2cf881859158e8d45584b3aee..719c48895504c6da765953f08d1328d26cf75e79 100644 (file)
@@ -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()