Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c5e920

Browse files
committed
merge
2 parents 410e88d + 4c3f478 commit 8c5e920

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/logging/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ class SMTPHandler(logging.Handler):
872872
A handler class which sends an SMTP email for each logging event.
873873
"""
874874
def __init__(self, mailhost, fromaddr, toaddrs, subject,
875-
credentials=None, secure=None, timeout=1.0):
875+
credentials=None, secure=None, timeout=5.0):
876876
"""
877877
Initialize the handler.
878878

Lib/test/test_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ def test_basic(self):
930930
sockmap)
931931
server.start()
932932
addr = ('localhost', server.port)
933-
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log')
933+
h = logging.handlers.SMTPHandler(addr, 'me', 'you', 'Log', timeout=5.0)
934934
self.assertEqual(h.toaddrs, ['you'])
935935
self.messages = []
936936
r = logging.makeLogRecord({'msg': 'Hello'})

0 commit comments

Comments
 (0)