mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Try to reduce the flakiness of this test
This commit is contained in:
parent
2a7767a173
commit
e39be53c3c
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue