summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-08-25 03:52:40 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-08-25 03:52:40 (GMT)
commite39be53c3cbdd2b623065e802e72a90d95f0bb31 (patch)
treec77f2b000f14d3b5f8ac241a63804f50c590444f /Lib
parent2a7767a17311cada06240a187c8896bdbcc1a4d0 (diff)
downloadcpython-e39be53c3cbdd2b623065e802e72a90d95f0bb31.zip
cpython-e39be53c3cbdd2b623065e802e72a90d95f0bb31.tar.gz
cpython-e39be53c3cbdd2b623065e802e72a90d95f0bb31.tar.bz2
Try to reduce the flakiness of this test
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_smtplib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_smtplib.py b/Lib/test/test_smtplib.py
index 7caa8a7..719c488 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()