mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #14644: Increased default timeout for SMTPHandler. Note: last commit message referred to the wrong issue number.
This commit is contained in:
parent
26308da174
commit
4c3f47896e
1 changed files with 1 additions and 1 deletions
|
@ -930,7 +930,7 @@ class SMTPHandlerTest(BaseTest):
|
||||||
sockmap)
|
sockmap)
|
||||||
server.start()
|
server.start()
|
||||||
addr = ('localhost', server.port)
|
addr = ('localhost', server.port)
|
||||||
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log')
|
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log', timeout=5.0)
|
||||||
self.assertEqual(h.toaddrs, ['you'])
|
self.assertEqual(h.toaddrs, ['you'])
|
||||||
self.messages = []
|
self.messages = []
|
||||||
r = logging.makeLogRecord({'msg': 'Hello'})
|
r = logging.makeLogRecord({'msg': 'Hello'})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue